Talk:First class environments: Difference between revisions

Content added Content deleted
No edit summary
Line 10: Line 10:
:Is there any at all? --[[User:Ledrug|Ledrug]] 16:47, 30 June 2011 (UTC)
:Is there any at all? --[[User:Ledrug|Ledrug]] 16:47, 30 June 2011 (UTC)
::I can't detect any. Flyweight patterns seem to be mainly concerned about sharing data structures, not about runtime variable bindings.--[[User:Abu|Abu]] 16:58, 30 June 2011 (UTC)
::I can't detect any. Flyweight patterns seem to be mainly concerned about sharing data structures, not about runtime variable bindings.--[[User:Abu|Abu]] 16:58, 30 June 2011 (UTC)
:[[User:Ledrug|Ledrug]]'s initial question was quite close. A "closure" is a combination of environment and code. AFAIK, in most languages the environment cannot be separated from a closure, and stored, retrieved and manipulated explictly. In PicoLisp it is the other way round: Environments can be constructed from normal Lisp data, and then perhaps be used to build a clojure, but also for other purposes.--[[User:Abu|Abu]] 17:17, 30 June 2011 (UTC)