mleku™️ @mleku - 25d
iterator enjoyer here #golang doesn't have tail recursion so it's not a good idea for performance reasons and the usual places you use recursion are short, tight loops which is where the performance hit is gonna be greater most functional languages and some OOP languages optimize with tail recursion but it's really overrated if i see it's gonna call itself more than a few dozen times it's gonna be performance issue for chewing up stacks and triggering heap allocations anyway, tail recursion, in the machine code, practically is the same as a for loop without a condition anyway
The Prim Reaper @Laeserin - 25d
Yes, that's my understanding, as well.
mleku™️ @mleku - 24d
you can construct tree walks with iterators as well, they aren't as elegant, but fuck elegant simple and efficient matters more sometimes elegant isn't either of these