by kibwen · 2y ago · 0 comments
Not useful? You've implemented resumable generators! Of course, getting them to do anything except resume immediately might be... exciting. :P Just need to structure your entire codebase as an inside-out stack of `toss`es...
This is really more like passing a callback through a side channel. "toss" is invoking said callback, and "return" is, well, returning from it.
Part of me wonders if it's a bit of a joke, panning a genuinely useful feature (in any other language) as disposable and silly (in this one).
Like yield in C#?