Hacker News new | ask | show | jobs
by pretendgeneer 1844 days ago
I want to like C more, it's simpleness is great until you need to do anything at compiletime then the macro's blow any C++ complexity out of the water.

It's why I like zig so much, It really is the language that understands what was wrong with C and fix's those parts and doesn't do too much more.

Macros suck -> comptime is just zig code Pointer or array is ambiguous most of the time -> array and ptr notation Error handling things with a lot of possible errors leads to goto's or messy clean up -> errdefer and defer make that clean.