Name: TCO HATER 2014-05-29 16:01
Tail Call Optimization IS SHIT
TCOTotal Cost of Ownership?????????
function loopy(int)
if(int%7 == 0) return loopy(int+11)
if(int%13 == 0) return loopy(int+19) + loopy(int+1)
if(int < 0) return loopy(int+100) + loopy(int+200) + loopy(int+300)
if(int% 36 == 0) return loopy(-int)
if(int % 10 == 0) return int
return loopy(int+3)
end
But my main point is that self-reference is not tied to functions, and that it itself does not require space (as illustrated by the latch example). If self-reference is implemented properly, there is no need for “tail call optimization”, because it’s not about calls at all.