• bizdelnick
    link
    fedilink
    arrow-up
    12
    arrow-down
    2
    ·
    11 months ago

    IMHO almost never. Except for tree traversal, maybe.

    • livingcoder@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      I would agree. Only if the performance is extremely similar but the readability (for some reason) is significantly better for the recursive solution would I choose that.