News for hackers. Stuff that matters.
Re:Why Zig when there is already C++, D, and Rust? by codeflo on Friday January 15, 2021 @07:23PM (#25798520)
I get your point. But even in non-mathy business software, data structure access is so much more convenient in languages with an overloadable index operator:

C#: foo[index] = bar[index];

Java: foo.put(index, bar.get(index));

Re:Why Zig when there is already C++, D, and Rust? by whatshisface on Friday January 15, 2021 @07:32PM (#25798591)
That is a very good point that I hadn't considered, because I was thinking about Go. In Go, the builtin data structures are compiler special-cases, so you get the index behavior on the map structure. Of course, it starts looking like Java for anything more advanced, but the ethos of Go is to not use anything more advanced.