4 ms·
> To force people to learn that making assumptions based on undefined behaviour is dangerous and that computers are not mind-readers. You can do that in a lot
by pcwalton 10y ago
> To force people to learn that making assumptions based on undefined behaviour is dangerous and that computers are not mind-readers.
You can do that in a lot less time with, say, Array.sort in JavaScript. Explaining that signed overflow is undefined, and why it's undefined, is a whole lot of digression for little gain.
> And you force people to write buffer manipulation code so they realize how good people using other languages have it.
Seems like a lot of time to spend to make a point that would have been a lot more relevant in 1990 than in 2016.