3 ms·
Tail calls are coming to Wasm. Aside, calling tail calls TCO makes it sound like it is just an optimization, which it is not. Tail calls enable beautiful contr
by sitkack 6y ago
Tail calls are coming to Wasm.
Aside, calling tail calls TCO makes it sound like it is just an optimization, which it is not. Tail calls enable beautiful control flow inside of state machines. It is a new fundamental capability and not an optimization.
- cben 6y agoIt makes a big difference when a language spec (such as Scheme) requires it. If only some implementations have it, and you can't assume it when coding, then it's "just an optimization". https://en.wikipedia.org/wiki/Tail_call#By_language https://en.wikipedia.org/wiki/Tail_call#By_language has a list.