JPDev@programming.dev to Programmer Humor@programming.dev · edit-23 months agoEvolution of Cprogramming.devimagemessage-square83fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageEvolution of Cprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · edit-23 months agomessage-square83fedilink
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up0·3 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·3 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·3 months agoIIRC it’s garbage collected, so really it’s just a version of Java.
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up0·3 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.