• bizdelnick
    link
    fedilink
    arrow-up
    12
    arrow-down
    2
    ·
    1 year ago

    IMHO almost never. Except for tree traversal, maybe.

    • livingcoder@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 year 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.