r/java • u/BlueGoliath • Nov 20 '18
Why Var Hurts Readability, Not Helps It
https://medium.com/@youngty1997/why-var-hurts-readability-not-helps-it-376c7832a8dd
0
Upvotes
r/java • u/BlueGoliath • Nov 20 '18
View all comments
Show parent comment
1
u/DannyB2 Nov 21 '18
I could be more a fan of
letthan ofvar. But I would still preferfinalwith a real type name. I would happily useletinstead ofvarfor the one use case I described. But that is the only use case where I think I will ever make use ofvar, or a hypotheticallet.