Why this array syntax?

I guess it’s good to focus on a minimal syntax while Zig is still heavily in development, but I really hope that at a later point there can be a little reversal in philosophy to get some balanced amount of syntax sugar into the language.

Because I think the philosophy to implement things in the stdlib that should be language features is what ruined both modern C++ and Rust :wink:

Both those languages also suffer from the problem that there’s no clear separation between the standard library and language features, e.g. syntax may depend on stdlib conventions (like for-loops relying on stdlib iterator interfaces etc…).

PS: also maybe I’m old fashioned or too ‘C-sided’, but I think a language should still be useful without stdlib usage

4 Likes