2 ms·
Out of interest could you explain exactly what you look for in a language that makes Zig a good replacement?
by contravariant 6y ago
Out of interest could you explain exactly what you look for in a language that makes Zig a good replacement?
- 10000truths 6y agoFor me, the best parts of it are: Very versatile metaprogramming (C’s macros make me puke), slices (if I had a nickel for every time I wrote a struct { thing_t* data; size_t len; }...), namespaces, and coupling of initialization and cleanup with defer/errdefer (gcc’s __attribute__((cleanup)) sucks to use).