‹ BackHN Continuity

Thread

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

173 points · 290 comments · ibobev

  1. ameliaquining · · focus · HN ↗
    The article, most unfortunately, doesn&#x27;t explain why anyone would want infinite loops to be UB in the first place. I found this explanation: <a href="https:&#x2F;&#x2F;www.open-std.org&#x2F;jtc1&#x2F;sc22&#x2F;wg14&#x2F;www&#x2F;docs&#x2F;n1528.htm" rel="nofollow">https:&#x2F;&#x2F;www.open-std.org&#x2F;jtc1&#x2F;sc22&#x2F;wg14&#x2F;www&#x2F;docs&#x2F;n1528.htm
    1. layer8 · · focus · HN ↗
      See <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49760653">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49760653.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.