Hacker News new | ask | show | jobs
by TUSF 958 days ago
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

1 comments

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?