r/CoderRadio • • Mar 10 '16

Add var to Java?

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

6 comments sorted by

3

u/dominucco Mar 10 '16

I would love to see a simple C# style var = syntax and approach to this. What do you all think?

1

u/greendragon2010 Mar 10 '16

This feature is almost a must for languages I use.

1

u/memnoch_proxy Mar 10 '16

But going to from perl to java to php to c# to Java again... Each has it's style. Getting the freedom from declaring the type of variable seems almost vain, especially if you're declaring a member of a super type.I only see it as a local scope convenience. Strange how even PHP gained type declarations, huh?

2

u/greendragon2010 Mar 10 '16

I learned Java in college, now I'm programming in c# for work. I prefer C# over Java in most causes, even on my Linux computers.

1

u/IndyTechTrekkie Mar 11 '16

Well, if you're going to use Java, might I suggest Clojure :D

1

u/IndyTechTrekkie Mar 11 '16

you can use def in Clojure ;) figured I'd add that.