News for hackers. Stuff that matters.
Re:Named Parameters in Java by hnriot on Friday August 10, 2012 @10:44AM (#4366356)
This, like many of the proposed solutions here exposes the issue that putting the (not particularly) long list of parameters into the ctor, that of not every being able to call doSomething without all the required values. What is the caller of your builder doesn't remember to set the zip and the doSomething method then uses it? You've only really added syntactic sugar and sacrificed functionality.

There are no comments on this comment yet.