3 ms·
> The old adage, less is more, is something that should be taken into account with programming language design. This is a case of less is more, in a way. Inst
by audunw 4y ago
> The old adage, less is more, is something that should be taken into account with programming language design.
This is a case of less is more, in a way.
Instead of having to learn an entirely different, half-baked language to do metaprogramming (C defines/macros), you just have Zig.
The only problem is that even though this approach leads to less additional added syntax for similar tasks, Zig unlocks potential for metaprogramming that goes far beyond C macros. And like with C macros, this could be abused. It's up to the user not to take it too far.
But yes, there's issues with debugability. I hope Zig improves that