Hacker News new | ask | show | jobs
by pjmlp 962 days ago
For that better use D, Nim, Swift, C#, Go, designed from the ground up with one in mind, and whole ecosystem counts on it, instead of having coloured libraries.
1 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?