3 ms·
I'll take C++ UB every day over this
by jcelerier 8y ago
I'll take C++ UB every day over this
- rictic 8y agoHuh, I'm the opposite. I'd gladly take a confusing combination of consistent spec'd behavior over time travel, arbitrary code execution, and nasal demons.
- marcosdumay 8y agoWell, at least with a consistent spec you can create a compiler for a good language. Somehow, undefined behavior in C is a much smaller problem than it looks like. But the principle still applies.
- jcelerier 8y ago> I'd gladly take a confusing combination of consistent spec'd behavior over time travel, arbitrary code execution, and nasal demons. the point of UB is that you can tell your compiler to transform it into a specific behaviour -e.g., an assert with -fsanitize=undefined for instance.