logoalt Hacker News

jhgbtoday at 1:06 PM1 replyview on HN

It gives you arbitrarily complex control flow even in presence of modularity. A tail call is a state transition. Without them, you'd have to resort to a big loop (which breaks modularity), or some sort of trampoline (which works but it's a bit clumsy).


Replies

artemonstertoday at 3:29 PM

this whole thing is equivalent to a goto at the beginning of a function.

show 2 replies