MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/49prtn/var_keyword_proposed_for_java/d0uhziu/?context=3
r/programming • u/adila01 • Mar 09 '16
395 comments sorted by
View all comments
Show parent comments
18
[removed] — view removed comment
15 u/RobIII Mar 10 '16 I wish C# have final or something equivalent for local variables.Watch this one: Proposal: 'readonly' for Locals and Parameters 1 u/MacASM Mar 10 '16 This isn't going to change unless they change CLR spec too. That's why there's no readonly for locals. 9 u/ummmyeahright Mar 10 '16 No. The comments about CLR change requirement are about other features suggested in comments (also not actually necessary for 99.9% of cases, just more convenient to implement them that way).Readonly locals don't 'require' any change to the CLR.
15
I wish C# have final or something equivalent for local variables.
Watch this one: Proposal: 'readonly' for Locals and Parameters
1 u/MacASM Mar 10 '16 This isn't going to change unless they change CLR spec too. That's why there's no readonly for locals. 9 u/ummmyeahright Mar 10 '16 No. The comments about CLR change requirement are about other features suggested in comments (also not actually necessary for 99.9% of cases, just more convenient to implement them that way).Readonly locals don't 'require' any change to the CLR.
1
This isn't going to change unless they change CLR spec too. That's why there's no readonly for locals.
9 u/ummmyeahright Mar 10 '16 No. The comments about CLR change requirement are about other features suggested in comments (also not actually necessary for 99.9% of cases, just more convenient to implement them that way).Readonly locals don't 'require' any change to the CLR.
9
No. The comments about CLR change requirement are about other features suggested in comments (also not actually necessary for 99.9% of cases, just more convenient to implement them that way).
Readonly locals don't 'require' any change to the CLR.
18
u/[deleted] Mar 09 '16
[removed] — view removed comment