|
|
|
|
|
by loup-vaillant
14 days ago
|
|
> I'm sure _someone_ thinks manual memory management is a feature rather than a bug, I reckon mandatory manual memory management is not ideal. But the ability to manage some memory manually, including in cases that require something more flexible than a stack, is definitely a feature. I believe every willing user of Zig, Odin, and Rust would agree with me on this one. > […] with some care […] you can avoid allocating at all […] As long as it’s crystal clear from the source code, or I have a tool that tells me which line of mine is responsible for the allocation. |
|
The tool is the escape analyzer, but I don’t think anyone has made it ergonomic yet.