Java 10 var: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Java =Overview=")
 
Line 4: Line 4:


=Overview=
=Overview=
The feature behind the Java 10 new keyword '''var''' is called local variable type inference.
=var and Code Readability=
Type inference reduces the amount of time it takes to write Java code, but it does not necessarily improve its readability. Some say that developers spend much more time reading source coding than writing it, so probably the amount of time it takes to write the code should be optimized in favor of readability.

Revision as of 15:54, 25 May 2018

Internal

Overview

The feature behind the Java 10 new keyword var is called local variable type inference.

var and Code Readability

Type inference reduces the amount of time it takes to write Java code, but it does not necessarily improve its readability. Some say that developers spend much more time reading source coding than writing it, so probably the amount of time it takes to write the code should be optimized in favor of readability.