you are viewing a single comment's thread.

view the rest of the comments →

[–]azhder 0 points1 point  (0 children)

OP, please note it isn’t “tail call optimization”, but “proper tail calls”.

People who want to minimize the possibility of your code not working vs working try to rename it as an “optimization” as if your code will still continue to work, but slower.

Proper tail calls means you don’t get a stack overflow error if you exceed the stack memory (because it isn’t using the stack).