‹ BackHN Continuity

Thread

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

173 points · 290 comments · ibobev

  1. z3ratul163071 · · focus · HN ↗
    c++ reaching new lows
    1. cppcppcpp · · focus · HN ↗
      This is good for Rust!
      1. layer8 · · focus · HN ↗
        This actually fixes a case that became a problem for Rust implementations: <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;28728" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;28728

        So yes, it is good for Rust.

        1. kibwen · · focus · HN ↗
          The Rust case was fixed back in 2021 via changes to LLVM, it didn&#x27;t require waiting for the C++ standards body.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.