News for hackers. Stuff that matters.
Re:Why Zig over C for Systems Programming by brabel on Friday November 13, 2026 @11:19AM (#50485724)
I don’t get it, C arrays can be used as slices, no?? Given a pointer and a length, which is how C does any array, works just as well (I mean if you consider arrays without a length a fine thing) as a slice!
Re:Why Zig over C for Systems Programming by jandrese on Friday November 13, 2026 @01:18PM (#50487525)
Sure you can do that, but you end up having to re-implement all of the standard library functions that expect to work with zero terminated arrays.