logoalt Hacker News

smashspectacle • today at 2:35 PM • 2 replies • view on HN

This is actually what first drew me to zig. Most people talk about error handling, but the explicit allocator handling and making choosing an allocator a deliberate consideration has pushed me to better coding habits in general. I don't think it is possible or practical to completely abandon heap-allocated memory, but explicitly choosing between allocation types and styles that most precisely fit a job has great potential for meeting that spirit.


Replies

EPWN3D • today at 3:54 PM

I don't think we can get rid of heap memory, but I do think we can get rid of a shared heap.

lawandjustice • today at 3:15 PM

[flagged]