Re:Crafting Interpreters: Classes
by mamcx on Tuesday October 31, 2017 @10:37PM
(#15598474)
Any example in how this is done? The info I have gathered is none what you have described!
[ Parent
| on HN ]
The best examples would just be the implementations of yield/async/await in C#, Javascript, Kotlin, Rust, etc. The only novel thing I'm proposing here is a shift in the syntax from explicit suspension points and implicit initiation of async operations, to implict suspension points and explicit initiation of async operations. Kotlin (which I mentioned) already mostly does this.