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

    IMHO almost never. Except for tree traversal, maybe.

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