Albin Jose to Programmer [email protected] • 1 year agoDepression Is No Moresuppo.fiimagemessage-square99fedilinkarrow-up11.8Karrow-down139
arrow-up11.76Karrow-down1imageDepression Is No Moresuppo.fiAlbin Jose to Programmer [email protected] • 1 year agomessage-square99fedilink
minus-square@[email protected]linkfedilink2•1 year agoSo would there be a happy medium between C and C++? A C+, if you will.
minus-square@[email protected]linkfedilink3•1 year 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@sirdoriuslink3•1 year agoThere is actually a C+, also called “orthodox” C++ https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b
minus-square@[email protected]linkfedilink1•1 year 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.
So would there be a happy medium between C and C++? A C+, if you will.
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
C-+
-0.5 + (float) C++
There is actually a C+, also called “orthodox” C++ https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b
Thanks! I figured someone must have tried it.
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.