Questions on Proper Tail Calls

Angus Croll anguscroll at
Sat Mar 9 15:00:26 PST 2013

1. Will proper tail calls only happen in strict mode, and if not are we ok
with losing backwards compatibility re. [function].caller and [

2. Will tail call behavior apply regardless of the tail call syntax? (fn(),, fn.apply)?

3. Will tail call behavior apply even when the tail call is not recursive?

4. If function fn has a function call in the tail position and is then
bound (fn2 = fn.bind(x)),  will fn2 also support proper tail calls? (I
think this is only relevant if (3) is true)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list