News for hackers. Stuff that matters.
Re:Nim 2.0 thoughts by funny_falcon on Monday May 17, 2021 @09:45AM (#27183296)
> Recursion and inheritance are interchangeable (in fact, either can be implemented as syntax sugar over the other)

Did you mean Recursion and Iteration?

Some recursion could be translated into iteration only if there is stack managed by hands. It decreases readability significantly.

Simplest example: Ackermann function.

And it works both way: some algorithms are better read as iteration.

There are no comments on this comment yet.