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