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

The so maligned "state" in FP resides in the call stack:

    f(g(h(x)))
It's a mutable and invisible data structure that drives the execution of the program.



It's not mutable and it's not a stack in the model, that's just an implementation artifact used for efficiency. You could equally well allocate every function context on the heap.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: