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

I wouldn't call smart pointers an "upgrade". If you are using smart pointers, you are not using the same language.

There are many features of C++ that would make a "better C", like namespaces and templates (which are better macros). But as good as they are in other contexts, smart-pointers are the last thing I want in C-like code.

Also, an advantage of C over C++ is that it doesn't have a runtime and it doesn't use name mangling. That makes linking much easier and particularly well suited to embedded applications.




C has a tiny little runtime: https://en.m.wikipedia.org/wiki/Crt0




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

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

Search: