Re:Show HN: Fe – A tiny, embeddable language implemented in ...
by kazinator on Sunday April 05, 2020 @06:11PM
(#22789167)
fluid-let is a famous Scheme imitation of dynamic variables.
SRFI-15: https://srfi.schemers.org/srfi-15/srfi-15.html [1999]
Re:Show HN: Fe – A tiny, embeddable language implemented in ...
by cryptonector on Sunday April 05, 2020 @10:16PM
(#22790386)
Ahh, ok.
These are called dynamic variables in Lisp. They're only really useful as a way of doing things like I/O redirection, and you can just shallow-bind them to make them fast (but then they need to be per-thread as well, and pushing a binding requires unwind-protect to pop on unwind).
> The other choice would be that the variables are lexically scoped. [...]
That's what the README says Fe does.