lelgenio@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agoA good book can change your lifelemmy.mlimagemessage-square35fedilinkarrow-up11.07Karrow-down142
arrow-up11.03Karrow-down1imageA good book can change your lifelemmy.mllelgenio@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agomessage-square35fedilink
minus-squareunique_hemp@discuss.tchncs.delinkfedilinkarrow-up97·edit-21 year agoRust: works Zig: segmentation fault
minus-squarespace_comrade [he/him]@hexbear.netlinkfedilinkEnglisharrow-up22arrow-down2·edit-21 year 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-up3·1 year agoSo how is Zig different from C or C++, then?
minus-squareledtasso@lemmy.worldlinkfedilinkarrow-up6·1 year agoMuch nicer than C, much simpler than C++, much less cruft than both.
minus-squareBlake Eastman@billys.momlinkfedilinkarrow-up1·1 year ago@CanadaPlus @unique_hemp the biggest difference is that they don’t make any memory changes invisibly
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.
@CanadaPlus @unique_hemp the biggest difference is that they don’t make any memory changes invisibly