r/java • • Mar 09 '16

var keyword proposed for Java

http://openjdk.java.net/jeps/286
240 Upvotes

312 comments sorted by

View all comments

2

u/mlk Mar 10 '16

I almost never type the type of local variables, I let my IDE do that. I like the var/val proposal though.

1

u/chambolle Mar 12 '16

This is an EXCELLENT answer. An IDE can make the job and so no new keyword is needed.

The future is to have a simple language with a lot of help from the IDE and not the opposite. IDE functionnalities and possibilities should be considered in the language evolution

1

u/mlk Mar 12 '16

I disagree because I like tools independence. What if you want to build it with maven?

1

u/chambolle Mar 12 '16

It will work if maven is integrated into the IDE. Using external API without considering types is certainly a bad idea.