|
|
|
|
|
by mijoharas
163 days ago
|
|
I'm not super experienced with zig, but I always think that in the same way that rust forces you to think about ownership (by having the borrow checker - note: I think of this as a good thing personally) zig makes you think upfront about your allocation (by making everything that can allocate take an allocator argument.). It makes everything very explicit, and you can always _see_ where your allocations are happening in a way that you can't (as easily, or as obviously - imo) in rust. It seems like something I quite like. I'm looking forward to rust getting an effects system/allocator api to help a little more with that side of things. |
|