Hacker News new | ask | show | jobs
by LukeShu 118 days ago
GCC has `[[gnu::musttail]] return`.

But yes, framing TCO as an optimization is unfortunate.

1 comments

And there's also [[clang::musttail]] and [[msvc::musttail]].

As well as an effort to get it standardized: https://isocpp.org/files/papers/D3939R0.html (in C++).