‹ BackHN Continuity

Thread

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

173 points · 290 comments · ibobev

  1. oleganza · · focus · HN ↗
    Why is null-terminated C string considered a "billion dollar mistake", but UB isn't?
    1. nicoburns · · focus · HN ↗
      Probably because null-terminated strings are completely avoidable, whereas some amount of UB is all but required for performance (albeit C and C++ have far too much).
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.