3 ms·
Lambdas. Concepts. Ten types of casts. Templates of templates. Everything and the kitchen sink is in there. You need a language lawyer to figure out anything b
by EGreg 10y ago
Lambdas. Concepts. Ten types of casts. Templates of templates. Everything and the kitchen sink is in there.
You need a language lawyer to figure out anything but the most basic interactions. For example,
1. What's the practical difference between an abstract class and an interface?
2. When do you have a copy constructor run instead of a cast on initialization if both are defined?
3. When would you use a non-virtual destructor?
What happens when you hire people? Isn't it better to have a small language that everyone understands in its entirety, and has to go out of their way to surprise you?
- wfunction 10y ago> 1. What's the practical difference between an abstract class and an interface? Interface? You are talking about the C++ language, right?
- kobeya 10y agoThe funny thing is I just good faith assumed that this was some new feature being added in C++17 that I'd now have to figure out how to use.
- santaclaus 10y ago> Interface? You are talking about the C++ language, right? If Sutter's metaclasses get into C++20 C++ could indeed have an equivalent to interface enforced by the compiler.
- Ace17 10y ago> What's the practical difference between an abstract class and an interface? C++ doesn't have "interfaces". No wonder you think there's too much stuff.
- jsolson 10y agoIronically, Java, which does have both, has a clear and unambiguous distinction between the two.