|
|
|
|
|
by qwertyuiop924
3819 days ago
|
|
Wait, What? Immutable closures are way less useful than mutable closures. Immutable closures can pretty much only be used to create thunks. Mutable closures are basically objects. On the other hand, if your closure depends on global mutable state, than you have a piece of GLOBAL state that is VARIABLE. Sometimes known as the root of all evil. But maybe I've been damaged/spoiled by scheme and/or not done enough concurrency programming to get your point. |
|