Comment on Things I like about Zig as a Go ProgrammerparentComments−TUSF2yBy convention, all Zig libraries have functions that take an allocator as input from the user. Your application can use libgc[1] and pass the allocator to any library function you use, and not worry about deallocating afterwards.[0]: https://github.com/linusg/zig-libgc−pjmlp2yYou missed the part of ecosystem designed with a GC in mind.−TUSF2yDoes an ecosystem designed with custom allocators (including gc) in mind not count for anything?
Comments
By convention, all Zig libraries have functions that take an allocator as input from the user. Your application can use libgc[1] and pass the allocator to any library function you use, and not worry about deallocating afterwards.
[0]: https://github.com/linusg/zig-libgc
You missed the part of ecosystem designed with a GC in mind.
Does an ecosystem designed with custom allocators (including gc) in mind not count for anything?