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

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




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: