3 ms·
They took out templates, inheritance, exceptions? What’s left to make it not just C?
by gigatexal 8y ago
They took out templates, inheritance, exceptions? What’s left to make it not just C?
- BlackFingolfin 8y agoPlenty: classes (including constructors/destructors, virtual methods, etc.), operator overloading, patterns like RAII, ...
- pjmlp 8y agoStronger type safety, fewer implicit conversions.
- masklinn 8y ago> fewer implicit conversions. Surely C++ has way more implicit conversions than C, what with having all of C's and ctors defaulting to converting?
- pjmlp 8y agoOnly if developers are too lazy to use explicit. I was referring to C implicit conversions that aren't valid in C++ code, like void* to other pointer types.