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

Object.freeze is the one you're looking for.

const + Object.freeze is a lot to remember and cumbersome to use throughout a codebase, very relevant to Carmack's wish for immutability by default. I'm grateful Rust opted for that default.



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

Search: