News for hackers. Stuff that matters.
Re:Why Zig when there is already C++, D, and Rust? by hobofan on Friday January 15, 2021 @06:44PM (#25798190)
So for those use cases where you will be using a library with custom types anyway, choose one that doesn't overload the operators for those types? This very much seems like a problem on the library- and not the language-level.
Re:Why Zig when there is already C++, D, and Rust? by Ar-Curunir on Friday January 15, 2021 @07:39PM (#25798645)
Also, in Rust if you don't want to use the overloading, you can still write your code to directly use function calls `a.add(b)`, where `a` is a type that implements the `Add` trait.