Re:Tail Calls, Optimization, and ES6
by eknkc on Saturday May 24, 2014 @04:30PM
(#7794325)
Why is it optional? What is the benefit of having it disabled by default if there is a decent implementation?
[ Parent
| on HN ]
They disabled it for error reporting/debugging reasons. Because you don't need to create a new stack frame, you eliminate that information in the backtrace.
Re:Tail Calls, Optimization, and ES6
by steveklabnik on Saturday May 24, 2014 @04:50PM
(#7794381)
I've seen at least one paper that shows a way to fix this... hm.
A lot of people prefer having complete, explicit stacks for debugger use over having tail calls.