4 ms·
I sometimes think it would be fun to do “do: ... where:/while/until”, wherein the “where” part does local bindings.
by asplake 2y ago
I sometimes think it would be fun to do “do: ... where:/while/until”, wherein the “where” part does local bindings.
- tpoacher 2y agothere is a nice "staticscope" package in python, which acts as a context manager, and does pretty much what you refer to. pretty neat. https://pypi.org/project/scoping/ https://pypi.org/project/scoping/