logoalt Hacker News

mmsctoday at 12:17 PM2 repliesview on HN

and TCO was added then removed from js! https://stackoverflow.com/a/54721813

This leads to fun stack-overflow bugs too in a lot of js code (one solution is to flatten: https://joshua.hu/javascript-infinite-tail-call-recursion-st...)


Replies

groundzeros2015today at 12:55 PM

Js really should have it. I think the shift in style from functional and manual prototype chains to Java classes is quite disappointing.

pfdietztoday at 12:18 PM

Lack of TCO is also a common footgun for Scheme programmers using Common Lisp.

show 3 replies