Opinion piece: On Zig (and the design choices within)
lobste.rs·12h·
Discuss: Lobsters
Flag this post

Some thoughts on these thoughts as a beginner Zig user.

Memory / Debug mode

I found the DebugAllocator to be a really handy tool. Getting a stack trace isn’t always trivially helpful and you occasionally just have to make logical leaps to figure out the core issue, but it’s much better than “Segfault :)”.

Sure, if you’re a memory safety absolutist, then yeah, Zig is probably needlessly difficult. Otherwise, I think it’s still a decently convenient process.

Comptime

Begrudging agree. comptime is very cool for what it is, but I have occasionally felt constrained by it in a way I wouldn’t have with a proper macro system. One example is compile-time generating functions that only differ in some slight …

Similar Posts

Loading similar posts...