Though its no longer truly "experimental"; this feature is targeted and integrated in JDK 18.3 (nee 10), shipping in March 2018!
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Can I configure it to use final var?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Why list.add boilerplate and not the shiny List.of. Show use of all new features. Make java great again ;)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Awesome! :) How about a folding doing the same, for those of us who are stuck with Java <18.3 :)
New conversation -
-
-
I'm sorry, but I cannot make it work on my IDEA 2017.3 EAP. I have no corresponding project level for the local variable type inference.pic.twitter.com/4MWdL2alBh
-
Just type 'var x = "foo"' and press Alt+Enter on 'var'.
- 2 more replies
New conversation -
-
-
#Lombok offers the local var type inference with "val". Val make the variable to final. you can use it until the jdk offers it.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Awesome!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Will there be a way to have it translated to an explicit type by default and without changing the underlying code ala lambdas?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.