2 ms·
> but if Tail Call Elimination is required in the implementation of a language as it is in Scheme This is also supported as a non-standard extension in C, C++,
by haberman 5y ago
> but if Tail Call Elimination is required in the implementation of a language as it is in Scheme
This is also supported as a non-standard extension in C, C++, and Objective-C as of Clang 13: https://clang.llvm.org/docs/AttributeReference.html#musttail https://clang.llvm.org/docs/AttributeReference.html#musttail (I implemented this).
> see Guy Steele's "Debunking the 'Expensive Procedure Call' Myth
Yes! :) I cited this paper in my blog article describing how we are using musttail: https://blog.reverberate.org/2021/04/21/musttail-efficient-interpreters.html https://blog.reverberate.org/2021/04/21/musttail-efficient-i...