I'm playing around with Zig for fun, and so far my most annoying mistake has bee...
Ivan Molodetskikh @YaLTeR@mastodon.online
I'm playing around with Zig for fun, and so far my most annoying mistake has been accidentally long-term storing a pointer to a stack struct or array (and then accessing it sometime later).
Before I started, I thought freeing stuff would be annoying, but so far, not really (the debug allocator very much helps). But this stack pointer mistake is easy to make (especially when mixing dynamic expressions with constant which are fine for this) and isn't always caught by debug checks (since it's UAF)