Re:All New Java Language Features Since Java 21
by vips7L on Saturday September 06, 2025 @05:50PM
(#45153197)
There’s nuance in programming. Both of these statements can be true. Var reduces boiler plate when you’re duplicating information in both the lvalue and rvalue.
I’m in agreement that when the information isn’t in the rvalue that you shouldn’t use var.
I’m in agreement that when the information isn’t in the rvalue that you shouldn’t use var.