Hacker News new | past | comments | ask | show | jobs | submit login

What if you only want a getter? The `final` keyword is too restrictive.

Also, it breaks encapsulation, because your internal storage should be changeable without ruining your external surface area.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: