3 ms·
> do weird things to reasonable-looking code, citing "undefined behavior" as an excuse. If the behaviour is undefined then the code is broken. Programmers nee
by geezerjay 9y ago
> do weird things to reasonable-looking code, citing "undefined behavior" as an excuse.
If the behaviour is undefined then the code is broken. Programmers need to learn the language instead of putting together hail mary code expecting it to somehow work in spite of the language specifically telling them that they should not expect any defined behavior out of it.
People who whine about undefined behavior are like kids who insist in jamming their fingers in a electric socket and whine when they get a shock.
- iainmerrick 9y agoIt would be nice for the compiler to be a friend and ally, rather than a mischievous opponent.