lelgenio@lemmy.ml to Programmer Humor@lemmy.ml · 11 months agoA good book can change your lifelemmy.mlimagemessage-square16fedilinkarrow-up14arrow-down10
arrow-up14arrow-down1imageA good book can change your lifelemmy.mllelgenio@lemmy.ml to Programmer Humor@lemmy.ml · 11 months agomessage-square16fedilink
minus-squareunique_hemp@discuss.tchncs.delinkfedilinkarrow-up2·edit-211 months agoRust: works Zig: segmentation fault
minus-squarespace_comrade [he/him]@hexbear.netlinkfedilinkEnglisharrow-up2·edit-211 months agoAlso no higher-order functions like map, filter, reduce etc. Really weird design decision for a brand new language. Comptime is pretty dope tho, I wish Rust had that instead of relying on macros so much.
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up1·11 months agoSo how is Zig different from C or C++, then?
minus-squareledtasso@lemmy.worldlinkfedilinkarrow-up1·11 months agoMuch nicer than C, much simpler than C++, much less cruft than both.
Rust: works
Zig: segmentation fault
Also no higher-order functions like map, filter, reduce etc.
Really weird design decision for a brand new language.
Comptime is pretty dope tho, I wish Rust had that instead of relying on macros so much.
So how is Zig different from C or C++, then?
Much nicer than C, much simpler than C++, much less cruft than both.