On Saturday 25 October 2003 20:05, David Eppstein wrote: ... > > One person here brought up (maybe David Eppstein) that they used this > > approach for coding up extensive algorithms that are functional in > > nature but have a lot of state referenced *during* the computation. ... > refactoring in general, but you convinced me that using an object to > represent shared state explicitly rather than doing it implicitly by > nested function scoping can be a good idea. Great testimony, David -- thanks!!! So, maybe, rather than going out of our way to facilitate coding very large and complicated closures, it might be better to keep focusing on _simple_, small closures as the intended, designed-for use case, and convince users of complicated closures that refactoring, as David has done, into OO terms, can indeed be preferable. Alex
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4