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

Immutability is property of data structure. It can help prevent some unexpected errors, mainly accidental side effects, but make no mistake, you can still use them to create bad and stateful code.

Think of a function, where everything is immutable, but instead if full of if/switch statements and complicated branching behavior. Even if it is deterministic, it will become intractable for reasoning once it reaches certain scale.



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

Search: