3 ms·
At least in Lua then the rule is simply 'last thing a function dose' this is unambiguous. `return f()` is always a tail call and `return f() + 1` never is.
by ZiiS 10mo ago
At least in Lua then the rule is simply 'last thing a function dose' this is unambiguous. `return f()` is always a tail call and `return f() + 1` never is.
- deleted 10mo ago[deleted]
- normie3000 10mo agoWhat about: return 1 + f() ?
- ZiiS 10mo agoNo, the last thing is the +; which can't run till it knows both values. (Reverse Polish notation is clearer, but humans prefer infix operators for some reason)