Allocators from C to Zig

19 points by asb


ogoffart

btw, the Allocator in Zig kind of makes functions “coloured”.

You have red functions that take an allocator parameter, and blue functions that don’t. A red function can call another red function by forwarding the allocator. But a blue function cannot easily call a red one.