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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help