Albin Jose to Programmer [email protected] • 2 years agoDepression Is No Moresuppo.fiimagemessage-square103fedilinkarrow-up11.76K
arrow-up11.76KimageDepression Is No Moresuppo.fiAlbin Jose to Programmer [email protected] • 2 years agomessage-square103fedilink
minus-square@[email protected]linkfedilink2•2 years agoSo would there be a happy medium between C and C++? A C+, if you will.
minus-square@[email protected]linkfedilink1•2 years agoYes, 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.
minus-square@[email protected]linkfedilink3•2 years agoI’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.
minus-square@[email protected]linkfedilink3•2 years agoThere is actually a C+, also called “orthodox” C++ https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b
So would there be a happy medium between C and C++? A C+, if you will.
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.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
There is actually a C+, also called “orthodox” C++ https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b
Thanks! I figured someone must have tried it.