JPDev@programming.dev to Programmer Humor@programming.dev · edit-24 months agoEvolution of Cprogramming.devimagemessage-square83fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageEvolution of Cprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · edit-24 months agomessage-square83fedilink
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up0·4 months agoAnything that is drop-in replacement for C (or C++ for that matter) is going to be awful because of the same compatibility burden, imo
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up0·4 months agoOh boy, Zig is just uglier C++ with memory safety, and it still has those awful header files…
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up0·4 months agoIIRC it’s garbage collected, so really it’s just a version of Java.
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up0·4 months agoD is a mostly drop-in replacement (type renaming and such needed though), and it doesn’t have that issue. D even has a mode called BetterC, where the D standard library and the garbage collector is left out.
Anything that is drop-in replacement for C (or C++ for that matter) is going to be awful because of the same compatibility burden, imo
What about Zig?
Oh boy, Zig is just uglier C++ with memory safety, and it still has those awful header files…
IIRC it’s garbage collected, so really it’s just a version of Java.
It does not use a GC
D is a mostly drop-in replacement (type renaming and such needed though), and it doesn’t have that issue. D even has a mode called BetterC, where the D standard library and the garbage collector is left out.