DEV Community

Discussion on: Demystifying Tail Call Optimization

Collapse
 
stefanct profile image
s.t.

Little nitpick: "Assuming right-to-left precedence (i.e. the direction in which an expression is evaluated)" does not specify the order in which the functions are called. This is often stated (even in books) but wrong. The chosen order is implementation (aka compiler) specific and independent from the order their results are then used in the caller.