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

> But there is a difference between using C in crazy ways

Is signed arithmetic using C in crazy ways? Is shifting by an arbitrary value without checking to make sure that the number of bits is in the valid range of the type using C in crazy ways?

Undefined behavior is everywhere in C.



And all of those are inherited by C++. Thankfully C++ has a large assortment of additional footguns to help combat the previous footguns. It also has armored, self-detonating shoes.




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

Search: