Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hedora
· 3y ago · 0 comments
I wish there was a “this is tail recursive; if you cannot turn it into a loop, fail to compile” compiler annotation for C++/rust.
Comments
[–]
Svetlitski
3y ago
Clang provides the "musttail" attribute for C and C++:
https://clang.llvm.org/docs/AttributeReference.html#musttail