Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



It'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


Oh, they remove stuff. See "Deprecating Vestigial Library Parts in C++17" [1].

[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p017...


To 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.


Fortran. Ok, maybe not as widely used :)


Common Lisp :)


COBOL




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: