MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/49prtn/var_keyword_proposed_for_java/d0ty080/?context=9999
r/programming • u/adila01 • Mar 09 '16
395 comments sorted by
View all comments
-1
Do you need a 'var' keyword at all? Can't you just have:
myNewVariable = 5;
without an explicit type declaration that doesn't actually add any useful info to the compiler? The compiler can just assume that any new unknown identifier is a new var.
0 u/[deleted] Mar 09 '16 [deleted] 4 u/[deleted] Mar 09 '16 Tester's fault. 13 u/eras Mar 09 '16 At least the tester is now ded, so that's resolved. 1 u/IbanezDavy Mar 09 '16 Depends where the nuke was aimed. 1 u/eras Mar 10 '16 Says right there in the premise:... and now everyone is dead because of your code.;)
0
[deleted]
4 u/[deleted] Mar 09 '16 Tester's fault. 13 u/eras Mar 09 '16 At least the tester is now ded, so that's resolved. 1 u/IbanezDavy Mar 09 '16 Depends where the nuke was aimed. 1 u/eras Mar 10 '16 Says right there in the premise:... and now everyone is dead because of your code.;)
4
Tester's fault.
13 u/eras Mar 09 '16 At least the tester is now ded, so that's resolved. 1 u/IbanezDavy Mar 09 '16 Depends where the nuke was aimed. 1 u/eras Mar 10 '16 Says right there in the premise:... and now everyone is dead because of your code.;)
13
At least the tester is now ded, so that's resolved.
1 u/IbanezDavy Mar 09 '16 Depends where the nuke was aimed. 1 u/eras Mar 10 '16 Says right there in the premise:... and now everyone is dead because of your code.;)
1
Depends where the nuke was aimed.
1 u/eras Mar 10 '16 Says right there in the premise:... and now everyone is dead because of your code.;)
Says right there in the premise:
... and now everyone is dead because of your code.
;)
-1
u/ejonesca Mar 09 '16
Do you need a 'var' keyword at all? Can't you just have:
without an explicit type declaration that doesn't actually add any useful info to the compiler? The compiler can just assume that any new unknown identifier is a new var.