3 ms·
Pohl: Could you quote an offending passage that claims that the purpose of undefined behavior is for speed? Me: How a-bout, "Undefined behavior exists in C-bas
by joe_the_user 16y ago
Pohl: Could you quote an offending passage that claims that the purpose of undefined behavior is for speed?
Me: How a-bout, "Undefined behavior exists in C-based languages because the designers of C wanted it to be an extremely efficient low-level programming language."*??
Seems pretty clear. You don't necessarily need the literal term "purpose" here - the term "because" in this passage implies purpose (http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html http://blog.llvm.org/2011/05/what-every-c-programmer-should-... - yes, that's first article, sorry).
- pohl 16y agoI see, it's a historical claim without a citation. What kind of machine was it back then, a PDP-11? I suppose it's possible they would want to save cycles here & there. Do you know something specific about the history here?