Zig Notes

advocacy
Login

advocacy

My conclusions

Ultimately I didn't like this language and never even managed to get any use out of it, and everything that I wrote in it got bitrotted away and wasn't worth fixing up. Twice I started Advent of Code with Zig only to quickly switch to some other language midway after getting fed up with it - even Nelua wasn't so frustrating, and even Rust is refreshing by comparison, and even Ada I easily stuck with and got some real use out of. There are some very good ideas and there are some good people, but it's all firmly coming from the school of "when you physically can't see your code anymore through the boilerplate and how long the identifiers are, it'll finally be truly readable and safe", and I subscribe rather to the school of "safety comes from auditability and double-entry bookkeeping".

Zig's obsessions have done more to warm me to its alternatives than to its solutions: actually, exceptions aren't so bad! Actually, duck-typed CTFE isn't so good! Actually, garbage collection isn't so bad! Even Go's error handling is a breath of fresh air after Zig's error handling.

Is it better than C++? Obviously. Is it better than C? ... well, RIP.

comparisons

praise

manual memory management

tangential