Message from JavaScript discussions

April 2017

— Ah well, the problem is call stack size


Yeah but that's exactly what tail call optimization is and the reason it only works on recursion with tail calls :)

— It doesn't work, though, it's barely supported

— JS is getting tail call optimization soon I guess

— If it were supported I'd be happy

— They're working on it

— The regular recursive code is so nice to read

— It would be nice to keep it that way haha

— Say on an object traveral algo, it will die on large objects as it hits the stack limits

— Yeh

— So for once, it is a matter of instability VS readability at least until we get that sweet feature implemented

Message permanent page

— Well, it being a build step is fine IMO