Re:Why Zig when there is already C++, D, and Rust?
by sobeston on Friday January 15, 2021 @06:46PM
(#25798208)
The concept of the heap is in the userspace of the language. This terminology is confusing to someone thinking of usermode/kernelmode - this is instead talking of userspace versus language-space. As in, users implement code to reason about heap memory; the language does not know or care what heap is.
At a language level, zig does not have a "new" or a "malloc" or anything of the sort.
At a language level, zig does not have a "new" or a "malloc" or anything of the sort.