Yes, use C++, but with extern "C" for everything so you can easily interface with other software. That limits you to no classes or namespaces, but internally you can use smart pointers, vectors, maps and actual strings.
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
So would there be a happy medium between C and C++? A C+, if you will.
C-+
-0.5 + (float) C++
Rust
I’m going to go ahead and say that’s not really a superset of C. But, yes, that’s the way everything is going in practice.
No not literally but you got it lol
Yes, use C++, but with
extern "C"
for everything so you can easily interface with other software. That limits you to no classes or namespaces, but internally you can use smart pointers, vectors, maps and actual strings.There is actually a C+, also called “orthodox” C++ https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b
Thanks! I figured someone must have tried it.