Actually hot take: Modern C++ is less safe than classic C++, which is less safe than C.
-
-
If nothing else, K&R compilers were less sophisticated in their exploitation of UB
-
Yeah, that’s what I was getting at.
- 5 more replies
New conversation -
-
-
K&R has plenty of UB, but no compiler ability or will to exploit it.
-
New conversation -
-
-
IIRC at least the type-based aliasing stuff came out of the standardization process, there's stuff in the ANSI rationale about it. ANSI also added const which creates more cases for UB
-
Type punning in Pre ANSI C was definitely way easier https://twitter.com/shafikyaghmour/status/993343113459449857 … See 3, 4 and 5
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.