2 ms·
I don't think it is surprising. Nested functions do not capture the return (and yield) continuation of their containing function, so they can't invoke it. Rust
by gpderetta 4y ago
I don't think it is surprising. Nested functions do not capture the return (and yield) continuation of their containing function, so they can't invoke it. Rust is in good company here and I think it is the right default for lambdas.
In principle you could have a variant scoped function syntax that does that, but that will complicate both the language implementation and syntax