Hacker News new | past | comments | ask | show | jobs | submit login

They took out templates, inheritance, exceptions? What’s left to make it not just C?



Plenty: classes (including constructors/destructors, virtual methods, etc.), operator overloading, patterns like RAII, ...


Stronger type safety, fewer implicit conversions.


> fewer implicit conversions.

Surely C++ has way more implicit conversions than C, what with having all of C's and ctors defaulting to converting?


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




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: