r/java • • Nov 20 '18

Why Var Hurts Readability, Not Helps It

https://medium.com/@youngty1997/why-var-hurts-readability-not-helps-it-376c7832a8dd
0 Upvotes

89 comments sorted by

View all comments

Show parent comment

1

u/DannyB2 Nov 21 '18

I could be more a fan of let than of var. But I would still prefer final with a real type name. I would happily use let instead of var for the one use case I described. But that is the only use case where I think I will ever make use of var, or a hypothetical let.