| ▲ | kenjin4096 2 hours ago | |||||||||||||||||||||||||||||||
I think Anton is replying to me in that LWN article IIRC. I personally didn't know C only had tail calls that late and learnt something new there! On the other hand, I am pretty new to the compiler space myself, and I count early 2000s as a pretty long time ago, though again it is not that far back considering how long other language implementations had tail calls like in ML or variants since 1980-90s. | ||||||||||||||||||||||||||||||||
| ▲ | pjmlp an hour ago | parent [-] | |||||||||||||||||||||||||||||||
It still doesn't, this is a compiler specific language extension. You won't find anything on ISO/IEC 9899:2024 about tail calls, like it happens on Scheme. https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf Section 3.5 of R7RS. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||