▲ | CooCooCaCha 2 days ago | |
This is exactly why I find the language unintuitive. I don't understand why they made the choices they made. For example, why curly brackets? I find the rust equivalent much more intuitive `let a: [i32; 3] = [1, 2, 3];` | ||
▲ | andyferris 2 days ago | parent | next [-] | |
It’s targeting C/C++ programmers accustomed to initializer lists in C/C++. | ||
▲ | throwawaymaths 2 days ago | parent | prev [-] | |
you couldn't do that in zig because a type is potentially a valid value: .{i32, 3} is a valid term in zig. |