DEV Community

Discussion on: Recursion optimization in JS - where is it? PTC, TCO and FUD

Collapse
 
wadimhalik profile image
Wadim Halik

Why not have both? Proper Tail Calls as a standard behaviour with the option to use a keyword to tell the compiler to do Tail Call Optimization.
Or the other way around, I really don't care as long as we have it implemented already. Jeez.