News for hackers. Stuff that matters.
Re:PHP: why GOTO instead of recursion? by wtetzner on Tuesday September 23, 2014 @02:07PM (#8356975)
> In the end, anything that can be done with tail recursion can be done in a loop which is way more readable then either using a GOTO or recursion.

The real value in TCO isn't a function recurring on itself, it's mutual recursion.

Re:PHP: why GOTO instead of recursion? by crimsonalucard on Tuesday September 23, 2014 @06:32PM (#8358762)
No, that is not the only case where it has value.

TRO is a mandatory optimization for functional languages where recursion is the only possible looping construct. Haskell, Clojure, Erlang and Lisps rely on it heavily.

Re:PHP: why GOTO instead of recursion? by wtetzner on Tuesday September 23, 2014 @08:01PM (#8359119)
Sorry, I didn't mean it was the only value. It's the value that you get from it that you don't get from having loops.