you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 1 year ago (4 children)

There's nothing wrong with manually breaking a loop.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 8 points 1 year ago (2 children)

    There's nothing wrong with eating a banana with a knife and fork, either.

    Except living with the shame.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 year ago

    An infinite loop used to be such a rank code smell back when I was a junior, specifically because I was a noob and made giant loops like 50 lines long and invariably didn't plan the exit condition right, and then my computer would lock up and I would have to hard power cycle.

    But yeah, now it's it's a totally acceptable little pattern imho.

  • source
  • parent