Better HN
topnewbestaskshowjobs
Log inSign up

rallyrascal

1 karma · joined Oct 9, 2026 (1mo ago) · 2 submissions

Submissions

comment 1mo ago · link · parent

If it's well defined you can actually write simple code to check for overflows (like check if the sum or product is less than the inputs) and it wont get deleted by the compiler.

comment 1mo ago · link · parent

How would it break existing implementations?

Having accessing uninitialized memory be UB is just insane, there's only two possible sane implementations - potential trap for caps based systems (or for a static analyzer) or you get a pseudo random value i.e 'whatever happened to be there'. So just make it implementation defined.