3 ms·
Some of these are hilarious. I'm always astounded how easy it is to shoot yourself in the foot with C++. It's such a important, transformative and widely used
by the_duke 8y ago
Some of these are hilarious.
I'm always astounded how easy it is to shoot yourself in the foot with C++.
It's such a important, transformative and widely used language, but due to the age and the "let's put everything in without ever removing anything because backwards compatability!" mentality has created a monster.
- hughw 8y agoOh, they remove stuff. See "Deprecating Vestigial Library Parts in C++17" [1]. [1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0174r1.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p017...
- paulddraper 8y agoTo be fair, how many languages are as old and as widely used as C++?(Only one: C) Anybody can create a some shiny new language or maintain a beautiful unused language.
- rini17 8y agoCommon Lisp :)
- basementcat 8y agoFortran. Ok, maybe not as widely used :)
- bsder 8y agoCOBOL
- mannykannot 8y agoIt's not just the number of things, but the way they combine, as in the rules for argument-dependent lookup (not to be mistaken for unqualified name lookup or template type deduction.) When you have pointers and two or arguably three types of references, and arrays that decay to pointers in some cases, there's a lot of different cases to be considered. It's quite an achievement that it often works the way you want. https://en.cppreference.com/w/cpp/language/adl https://en.cppreference.com/w/cpp/language/adl