Re:Undefined behavior in C is a reading error
by cygx on Thursday May 20, 2021 @01:30PM
(#27224221)
It's not so much about cleverness, but knowledge and vigilance. You first have to be aware of all the footguns, and then be careful not to let any of them slip through...
[ Parent
| on HN ]
> You first have to be aware of all the footguns,
Knowing your tools is part of being a professional. C is not for amateurs.
Re:Undefined behavior in C is a reading error
by rurban on Thursday May 20, 2021 @04:14PM
(#27226562)
Then use such a tool, but don't call it C, rather -std=gnuc-opt11, which always knows better than the author, without any warning.
Call it randomC, unsuitable for professional programmers, but extremly suitable for benchmark games and managers. Who prefer to ignore pesty overflows, underflows, memset, memcpy, dereferencing NULL pointers and other rare cases.