logoalt Hacker News

omoikaneyesterday at 3:59 PM2 repliesview on HN

The article mentions it's a halt-on-error pattern:

https://www.sandordargo.com/blog/2026/09/16/cpp26-trivial-in...

Edit: sorry, missed the UB bit.


Replies

Lvl999Noobyesterday at 4:09 PM

That says why they don't want it to be UB. The question, I believe, was why they want statically-known-infinite non-trivial loops to continue being UB.

rcxdudeyesterday at 4:05 PM

That's more why you would want them to be defined in the first place.