Comment by jordand
6 hours ago
Memory allocations are always done explicitly (nothing is hidden or implicit). I've not written enough Zig yet to appreciate that, but I've hit plenty of those issues year-after-year with C++ to know their approach is sane and rational.
Memory allocations in Rust are also always done explicitly, but Rust's library types don't have APIs that allow you to get it wrong.
Rust doesn't (yet) have the same level of control over allocators as Zig does.
The Rust language has exactly that level of control. Rust's Alloc and STD implementations do not yet provide it.