It's a matter of philosophy: in Zig the programmer is expected to be explicit and type more code to implement complex interactions. This is sometimes a blessing and sometimes a curse. In Rust you can trivially declare that a type fits a given interface by declaring that it implements a Trait, in Zig you have to do structural equality. On the flipside Rust keeps getting features that add magic to the language which make it harder for devs to have full knowledge of the language.
In my opinion C also meant to have a philosophy similar to Zig's, but it also features an endless chain of footguns and funky syntax that detract from its goal of simplicity.
I personally favor simplicity and visibility. Explicit is better than implicit. A language should be minimal, yet, complete. Rest everything should go into standard library, if needed.
Rust "almost" became a perfect language across all domains. But, the complexity of the language itself takes that perfectness away. We need a language like Rust, but without it's complexity. I believe Zig does fit really well here :)
For further actions, you may consider blocking this person and/or reporting abuse
It's a matter of philosophy: in Zig the programmer is expected to be explicit and type more code to implement complex interactions. This is sometimes a blessing and sometimes a curse. In Rust you can trivially declare that a type fits a given interface by declaring that it implements a
Trait
, in Zig you have to do structural equality. On the flipside Rust keeps getting features that add magic to the language which make it harder for devs to have full knowledge of the language.In my opinion C also meant to have a philosophy similar to Zig's, but it also features an endless chain of footguns and funky syntax that detract from its goal of simplicity.
Thanks @kristoff
I personally favor simplicity and visibility.
Explicit is better than implicit
. A language should be minimal, yet, complete. Rest everything should go into standard library, if needed.Rust "almost" became a perfect language across all domains. But, the complexity of the language itself takes that perfectness away. We need a language like Rust, but without it's complexity. I believe Zig does fit really well here :)