proper tail calls

Peter Michaux petermichaux at gmail.com
Fri Jan 18 21:36:03 PST 2008


Will proper tail calls be implicit in ES4 or will there be a need for
special syntax? I hope it is just a required optimization but then I
read this ticket

http://bugs.ecmascript.org/ticket/323

and it seems there is a suggestion that the spec will only require
proper tail calls with a "goto" statement. Is it not reasonable for
the spec to simply require implementations to have proper tail calls?
Is it not acceptable for the spec to require certain implementation
internal optimizations?

Peter



More information about the Es4-discuss mailing list