DEV Community

Discussion on: var var = var().var.var()

Collapse
 
bufferings profile image
Mitz

Indeed. I would reject it in no time if anyone send a pull request like this :)

Collapse
 
alainvanhout profile image
Alain Van Hout

Yes, there’s a big difference between brevity and maintainability, which is something quite a lot of people apperently do not realize.

Thread Thread
 
bufferings profile image
Mitz

You're right. I think this article is a good starting point how to use/not to use var :)

Style Guidelines for Local Variable Type Inference in Java