Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

All private does is make it hard for developers further down the track to make changes that they want to make.

And if you don't need private then why have public?




What private does is make it easier for developers further down the track to fix bugs, and prevent consumers of a class from making horrible mistakes by introducing dependencies on implementation details of a class that are not guaranteed to exist in future versions.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: