Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> because NULL + 0 is undefined behavior in C.

Why? It's 2024. Make it not be? Sure, some older stuff already written might no longer compile and need to be updated. Put it behind a "newer" standard flag/version or whatever.

Or is it that it can't be caught at compile time and only run time... hmm...



They are making it not be. That’s the whole point of the article.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: