▲ | Implementing dynamic scope for Fennel and Lua(andreyor.st) | |
38 points by Bogdanp 6 days ago | 1 comments | ||
▲ | tikotus 3 days ago | parent [-] | |
This is interesting. I've been playing with the idea of dynamic binding for my own scripting language (designed for gamedev). Though I keep coming back to the idea of passing an implicit context object instead, preferably immutable. It will cover all of my most common use cases. I'm especially a big consumer of coroutines, and it's seems unclear how dynamic binding would work with those. With a context object there are less surprises. |