by Ygg2 · 1w ago · 0 comments
Which seems to be something Zig can't do.
Hell, you can define operators for generic length SIMD lane.
The issue is the mindset, "I (Zig creator) don't need it nobody else does."
In the case of Zig this is especially glaring and a core aspect of its design. In my low-level work, partial evaluation (or "compile-time code generation") is very important, and both C++ and Rust have it, albeit inelegantly. The problem is that they both bring with them the complexity I try to avoid. Zig is special because it offers all that power in a simple language, which is what many people want.
Different programmers want contradictory things out of programming languages, and it's impossible to satisfy all of them. Some people want to use a language with operator overloading, while others want to use a language that doesn't offer operator overloading. They can't be using the same language.
Simplicity is a good metric but a lousy goal. If simplicity was a good goal, Brainfuck dialect would be the most used language.
> Different programmers want contradictory things out of programming languages
True to an extent but there are universal qualities every good language shares.
Ease of use; good performance even in naive cases; good safety/security even in naive cases; expressivity; fast compile times; conciseness.