C++26: Trivial infinite loops are no longer undefined behaviour
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
C++26: Trivial infinite loops are no longer undefined behaviour
Unofficial Hacker News client; not affiliated with Y Combinator.
JoshTriplett · · focus · HN ↗
Insert screaming here.
An infinite loop, with no library calls whatsoever, gets a system call inserted. That's a horrible surprise waiting to happen.
The entire concept of the "forward progress guarantee" is broken. An infinite loop should compile to an infinite loop. Nothing more, nothing less.
ozgrakkurt · · focus · HN ↗
Also performance doesn't matter that much and developer time is more important btw, keep using react.
muvlon · · focus · HN ↗
JoshTriplett · · focus · HN ↗
muvlon · · focus · HN ↗
fc417fc802 · · focus · HN ↗
mitxela · · focus · HN ↗
IcyWindows · · focus · HN ↗
The ISO standard is not the same as a language from a single vendor.
mitxela · · focus · HN ↗
cryptonector · · focus · HN ↗
mitxela · · focus · HN ↗
mschuetz · · focus · HN ↗
cryptonector · · focus · HN ↗
Dylan16807 · · focus · HN ↗
mschuetz · · focus · HN ↗