Hacker News new | ask | show | jobs
by fizixer 2034 days ago
You missed one comparison: C infra (no C++).

(well strictly speaking, additionally you could also have hand-written assembly infra).

1 comments

You can write C style code in C++ and still get access to features that are still interesting in the problem domain. constexpr functions, typesafe enums, static assertions, and destructors come to mind. No need to even touch a template or inheritance if you don't want to.

The main benefits of C per se are ABI stability and availability of compilers.