JEP 286: Local-Variable Type Inference
GPTKB entity
Statements (20)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb:Python_Enhancement_Proposal
|
| gptkbp:category |
Language feature
|
| gptkbp:deliveredBy |
gptkb:Java_10
|
| gptkbp:feature |
Allows use of 'var' to declare local variables with inferred types.
|
| gptkbp:hasSyntax |
var variableName = expression;
|
| gptkbp:JEP_number |
286
|
| gptkbp:language |
gptkb:Java
|
| gptkbp:motive |
Reduce boilerplate code and improve readability.
|
| gptkbp:notInScope |
Fields, method parameters, return types.
|
| gptkbp:plotSummary |
Enhance the Java language to extend type inference to local variables with initializers.
|
| gptkbp:proposedBy |
Reinhold, Mark
|
| gptkbp:scope |
Local variables with initializers, index variables in for-loops, and local variables declared in try-with-resources.
|
| gptkbp:seeAlso |
gptkb:JEP_323:_Local-Variable_Syntax_for_Lambda_Parameters
JEP 305: Pattern Matching for instanceof |
| gptkbp:status |
Delivered
|
| gptkbp:title |
Local-Variable Type Inference
|
| gptkbp:bfsParent |
gptkb:JEP_330:_Launch_Single-File_Source-Code_Programs
gptkb:Java_10 |
| gptkbp:bfsLayer |
8
|
| https://www.w3.org/2000/01/rdf-schema#label |
JEP 286: Local-Variable Type Inference
|