Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (17 sloc) 742 Bytes
--
(fn [] a)
The FN builtin should search for a nearby "A". If not found, compiler
exception!
In any other instance, we can resolve it then and there -- exciting
implications for speed, as we can know where to set it without having to call
Context#lookup.
(fn [a] a)
This implies we need to be able to find the "A" in this context.
--
I'm not sure how cromulent it is having one context created for the FN. It
should probably be one context per execution. The question is whether these
two cases are distinguishable in reality.
--
Low-tech beginning: resolve vars (because we can), and anything else we look in
contexts (maybe plus some aux. info?) for. IF we can't find it, error, else
just leave it. (Or count contexts?)