Albin Jose@suppo.fi to Programmer Humor@lemmy.ml · 2 years agoDepression Is No Moresuppo.fiimagemessage-square99fedilinkarrow-up11.8Karrow-down139
arrow-up11.76Karrow-down1imageDepression Is No Moresuppo.fiAlbin Jose@suppo.fi to Programmer Humor@lemmy.ml · 2 years agomessage-square99fedilink
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up2·2 years agoSo would there be a happy medium between C and C++? A C+, if you will.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up3·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-squarePutangInaMo@sh.itjust.workslinkfedilinkarrow-up1·2 years agoNo not literally but you got it lol
minus-squaresirdorius@programming.devlinkfedilinkarrow-up3·2 years agoThere is actually a C+, also called “orthodox” C++ https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up1·2 years agoThanks! I figured someone must have tried it.
minus-squarezaphod@feddit.delinkfedilinkarrow-up1·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.
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
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.