That article is about a year old, so I’m hoping tail call optimization is coming up or have already been implemented. Does anyone have more information on that?
Would be great to have a community push around it, it would improve code quality IMHO!
That’s entirely untrue, recursion is still a reasonable answer for many problems that can not be solved differently.
if the problem can be solved using a loop however, that’s indeed the recommended way in Go
Right but as Luna mentioned it won’t be as efficient as using a loop (assuming you can write it with a loop) or is that a wrong statement? Also I guess there’s a risk of growing the stack too much isn’t it?