Re:Immutable annotations for Java
by hyperpape on Sunday July 12, 2015 @02:08PM
(#9874311)
It's arguably a good feature, but I've come to the opinion that it's a bad default.
[ Parent
| on HN ]
Re:Immutable annotations for Java
by unclebucknasty on Sunday July 12, 2015 @02:36PM
(#9874403)
As with any feature, it must be used properly.
But, from an OOP perspective, modelling state changes is natural and desirable. So mutability seems a sensible default.
It's only the recognition of issues that can arise from state changes that has us wanting to lop off the entire feature. A rather strange and drastic "solution" in my view.