3 ms·
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 wh
by pretendgeneer 5y 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.