2 ms·
Is Scheme scoping any different from any other language with lexical/static scoping?
by nerdponx 4y ago
Is Scheme scoping any different from any other language with lexical/static scoping?
- bjoli 4y agoIt is simpler in some ways, mostly because scheme has a "syntax tower" where even the most basic things can be understood in terms of other things. Let can be defined in terms of lambda. Let* in terms of let. Letrec* is also not that hard. Once you know this and the difference between definition context and bodies (which is simple) there isn't much to add. The top-level works mostly like letrec*. Internal definitions work like letrec* Libraries work like letrec*