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

Getters and setters are not just there to work around the visibility system. Just making everything public doesn't change the fact that C++ lacks properties, and you cannot change a concrete value into a calculated value without changing the API.



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

Search: