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

No. Automatic tail call elimination can't be implemented without breaking JS semantics.

Manual tail calls can perfectly well be implemented without breaking anything.



Of course! The parent mentioned JS getting them however, which is, as I mentioned, impossible.


Yeah, just add goto!


Yes, add goto. If JS is going to be the "assembly language of the web", it needs a general branch construct or it will suck.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: