Thoughts
The Rust culture is so annoying I'm sorry. I asked a question in the Rust question: I want to modify a HashMap value, and this guy is like
"you can't be modifying things willy-nilly in safe rust." And then a couple minutes later he points out there's function to get a mutable reference to a HashMap value.
The Rust API is just so huge I just can't wrap my brain around it.
Like I'm not good at writing Zig. I'm not smarter at writing Zig code. But the way that Zig is designed, I as the programmer have control over what's going on, and so I figured out how to allocate on the stack and so all of my Zig code is 100% stack allocations—I don't allocate anything on the heap at any point. (Even the Zig functions that do allocations take an allocator, so I can allocate space on the stack and create a fixed buffer allocator for them to use.) But I can't do that in Rust because `HashMap` allocates on the heap and that makes the API more complicated. So instead of creating my own constrains, I need to satisfy all of the standard library API constrains.