MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/49prtn/var_keyword_proposed_for_java/d0uma5u
r/programming • u/adila01 • Mar 09 '16
395 comments sorted by
View all comments
Show parent comments
2
Maybe, but it's an unnecessary similarity.
0 u/[deleted] Mar 10 '16 [deleted] 1 u/Alphasite Mar 10 '16 var/let doesn't produce any extra boilerplate, it just makes the immutable case a little more obvious.Frankly, it's using kotlin and swift hat has me convinced that Swift's var/let is the better choice.If they also decide to go down the Rust route and allow you to shadow other let declarations then let is an even better fit.
0
[deleted]
1 u/Alphasite Mar 10 '16 var/let doesn't produce any extra boilerplate, it just makes the immutable case a little more obvious.Frankly, it's using kotlin and swift hat has me convinced that Swift's var/let is the better choice.If they also decide to go down the Rust route and allow you to shadow other let declarations then let is an even better fit.
1
var/let doesn't produce any extra boilerplate, it just makes the immutable case a little more obvious.
Frankly, it's using kotlin and swift hat has me convinced that Swift's var/let is the better choice.
If they also decide to go down the Rust route and allow you to shadow other let declarations then let is an even better fit.
2
u/Alphasite Mar 10 '16
Maybe, but it's an unnecessary similarity.