Questions on Proper Tail Calls

Angus Croll anguscroll at gmail.com
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 [
callingFunction].arguments?

2. Will tail call behavior apply regardless of the tail call syntax? (fn(),
fn.call, 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)

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130309/943afcfa/attachment.html>


More information about the es-discuss mailing list