you are viewing a single comment's thread
view the rest of the comments
[–] 15 points 2 years ago (2 children)

Recursion makes it cheaper to run in the dev's mind, but more expensive to run on the computer. Subroutines are always slower than a simple jump.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 7 points 2 years ago

    Recursion makes it cheaper to run in the dev's mind, but more expensive to run on the computer.

    Maybe for a Haskell programmer, divide-and-conquer algorithms, or walking trees. But for everything else, I'm skeptical of it being easier to understand than a stack data structure and a loop.

  • source
  • parent