Skip to content

Comment on Things I like about Zig as a Go Programmerparent

Comments

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.

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?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.