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

> All that said, keeping track of state changed by mutation is deceptively hard. It's a case where your intuition routinely leads you to build things you can't maintain. But sticking strictly to the claim in the OP, it's easy to learn to mutate state but hard to do.

Hard to do... safely. Easy to do wrong, though. But wrong might still work most of the time. [Edit: "Works most of the time" is not praise, nor endorsement of the approach.]

To me, this is the fundamental thing that the FP people have right. Constrain your state space or die.



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

Search: