logoalt Hacker News

jordandtoday at 12:55 PM1 replyview on HN

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.


Replies

Meastertoday at 1:11 PM

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.

show 1 reply