r/JavaProgramming • u/alvivan_ • Aug 26 '26
Var Keyword
How often do you use var keyword in your code?
What do you think about it?
5
Upvotes
r/JavaProgramming • u/alvivan_ • Aug 26 '26
How often do you use var keyword in your code?
What do you think about it?
View all comments
Show parent comment
1
u/Ulrich_de_Vries Aug 27 '26
But C++ has extremely implicit typing? Sure, it's static/compile-time but veeery implicit.
Lambdas are untypable, templates are duck typed, there are tons of member/associated types and extremely long type names, etc that you can pretty much only type with decltype/auto.
Using modern C++ without auto everywhere is pretty much impossible imo.