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

But why did they make it Undefined Behavior instead of Implementation Defined?

I love the C language, but there are now so many UBs in the language, it is painful to use.



If they did, we would have two subtly different dialects of C for cyclic shift and zeroing shift, and possibly even worse, combinations of the two.

That said, I am curious what the official answer is myself.




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

Search: