|
|
|
|
|
by simjnd
262 days ago
|
|
Zig make allocations extremely explicit (even more than C) by having you pass around the allocator to every function that allocates to the heap. Even third-party libraries will only use the allocator you provide them. It's not a fallacy, you're in total control. |
|
what prevents a library from taking an allocator, saving it hidden somewhere and using it silently?