Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

I think closed-over mutable state certainly has its place. For example, delay and force in Scheme. Mutable local state is used to memoize the result of the delayed procedure. Of course, it would be terrible for a large program to keep all of its state within a closure. You eliminate the benefits of live-coding from your REPL at that point since you can only directly affect the top-level environment.


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

Search: