‹ BackHN Continuity

Thread

C++26: Trivial infinite loops are no longer undefined behaviour

173 points · 290 comments · ibobev

  1. account42 · · focus · HN ↗
    Unfortunate. There isn't ever a good reason to have an infinite loop so concerned compilers could have just diagnosed this as a warning.
    1. not_the_fda · · focus · HN ↗
      Interrupt driven super loops are very common on bare metal systems.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.