4 ms·
1853 pages. Oof.
by AnimalMuppet 6y ago
1853 pages. Oof.
- wffurr 6y agoAnd somehow still insufficient. They can't find words in all that to define some undefined behavior?
- AnimalMuppet 6y agoUndefined behavior isn't undefined because somebody didn't have enough words to nail down a definition. It's undefined by definition.
- pajko 6y agoAnd some of them does a "sane" defined thing on some of the platforms, but enforcing them for all of the platforms would mean a lot of burden to the implementors working on those.
- pjmlp 6y agoThey found them, because UB cases are documented actually.
- Gibbon1 6y agoIt's a cultural problem. The standards committee cares about security than micro-benchmarks on legacy hardware.
- lionkor 6y agosome behaviors are defined to be undefined because there is no sane way to universally define them in a way that doesnt cripple the range of supported hardware & OSs.
- pjmlp 6y agoIt includes the standard library, still way smaller than Java, C#/VB/F#/.NET or Python standards. For a language like C, add the POSIX standards, which is like C's extended library.
- kungito 6y agoC# standard has 550ish pages https://www.ecma-international.org/publications/standards/Ecma-334.htm https://www.ecma-international.org/publications/standards/Ec... Are you making the numbers up?
- pjmlp 6y agoNo, I explicitly mentioned "standard library", you are missing these ones as well. https://www.ecma-international.org/publications/standards/Ecma-335.htm https://www.ecma-international.org/publications/standards/Ec...
- jcelerier 6y agoC# standard doesn't define the standard library, it only gives you the class prototypes (from pages 463-473 from what I can see) while the C++ standard does give you preconditions and postconditions for every function, complexity bounds for algorithms, etc. (from pages 458 to 1609, so by far the majority of the thing). C# also does not define threads, linq, etc... which if it was C++ would all have to be defined in the standard. If you compare only the language definition itself, C++ is actually shorter by a couple pages than C#: it ends at page 457 on the pdf: https://isocpp.org/files/papers/N4860.pdf https://isocpp.org/files/papers/N4860.pdf