3 ms·
> The statement that he could easily implement coroutines via go seems like oversimplification or lack of problem domain understanding. For someone with a lack
by weberc2 9y ago
> The statement that he could easily implement coroutines via go seems like oversimplification or lack of problem domain understanding.
For someone with a lack of problem domain understanding, could you elaborate on this? :)
- wruza 9y agovm.go/l.call doesn't seem to be reentrant (though I'm not native go speaker). This means that yielding across, e.g. for-loop [edit:]iterators, would leave vm with broken invariants. There are also pcalls that must be dealt with. But since this language is just similar and differs in too many things, explicit restrictions may help solve that, like it was done for <= 5.1.