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

Const does not mean immutability, only immutable references to the outermost pointer. It is equivalent to final in Java. While that solves the issue with numbers changing state, it does not help objects e.g. For that you need something like immutable.js from Facebook.



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

Search: