3 ms·
Shouldn't that read as: The complexity of C++ spec in comparison to "modern" languages hides many unfathomable corner bases, and non-obvious interactions of lan
by UncleOxidant 5y ago
Shouldn't that read as: The complexity of C++ spec in comparison to "modern" languages hides many unfathomable corner bases, and non-obvious interactions of language features
?
- gumby 5y agoOf course the corner cases exist in all languages; what is different is that most have only one, or few implementations so the definitions of those cases are de facto “what the compiler/interpreter does”. A lot of the C++ spec is nailing these down (or giving you a tool to choose). In that it’s a lot like IEEE 754: very simple, but then with page after page of “oh, so here’s a non-obvious consequence and how it must be handled.”
- nicoburns 5y agoI think a lot of the complexity of C++ comes from the cases it doesn't nail down and leaves as implementation defined or worse undefined behaviour. There are several JavaScript implementations too, but one rarely needs to care about this.