logoalt Hacker News

eru • today at 3:53 AM • 0 replies • view on HN

> It doesn't make sense to define what happens when you e.g. read from NULL because it's hardware specific - if you have virtual memory of some sort, you'd probably get a page mapping error. If you don't (embedded, WASM), you'd read back whatever value is at that address.

That's an argument in favour of 'implementation defined behaviour'. Not 'undefined behaviour'.