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