Re:Java 9 features announced
by mercurial on Tuesday August 19, 2014 @01:49PM
(#8198745)
Can't say I understand the downvotes on this one. If you add a parameter in a traditional constructor but don't update the site calls, your code won't compile. If you add a builder method, your code will still happily compile, you'll have to wait until runtime to get an exception, if you added a check in the build() method. That's something to think about, just like you give up safety for convenience when you move to a DI framework.
[ Parent
| on HN ]
There are no comments on this comment yet.