▲ | vanyle 3 days ago | |
For CLI tools, the program usually only executes for a few seconds and then returns. In this context, you don't even need arena allocators or any memory management at all. You can write the tool in C with malloc and let the OS free the memory at the end without worry. You could argue with the reasoning that C feels more practical than Zig for real-world CLI tools. The argument provided by the author feels a bit besides the point. |