Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

GCC has `[[gnu::musttail]] return`.

But yes, framing TCO as an optimization is unfortunate.



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++).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: