4 ms·
If I call some function foo() I have no idea if it does any heap allocation internally. In zig I always know because all functions that allocate memory explici
by sirwhinesalot 5y ago
If I call some function foo() I have no idea if it does any heap allocation internally.
In zig I always know because all functions that allocate memory explicitly request an allocator. That also allows me to control which allocator they use.
- ModernMech 5y agoI see, I didn’t understand that’s what they meant about zig.