Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Checked Zig. Doesn't have a memory manager. It's "free all at program termination" or manually manage memory like C.


It is much better structured than C. Everything in the standard library that allocated memory takes an allocator as first argument.

And you got cleanup with defer statements. Together this makes the memory management story very different from C.


It does have some nice improvements over C though, such as defer-style deallocation, which can help with many potential bugs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: