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

The main problem with tail call optimization is that it's unreliable; small apparently unrelated changes elsewhere in the function, a difference in the compiler command line flags, or a different compiler version, could all make a tail call become a non-tail call. Some languages have proposed explicit markers to force a call to be a tail call (and generate a compilation error if it can't), but I don't think these proposals have been adopted yet.


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

Search: