Re:Local State Is Poison (2012)
by davexunit on Friday December 27, 2013 @11:22AM
(#6971202)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.