News for hackers. Stuff that matters.
Re:Swift architecture at Uber by curun1r on Thursday April 27, 2017 @01:56AM (#14209478)
Rust does have operator overloading though the traits in the std::ops module. There are only a few (&&, ||, etc) that can't be overridden.
Re:Swift architecture at Uber by eridius on Thursday April 27, 2017 @02:07AM (#14209527)
Oh you're right about that. I was thinking of custom operators when I said no operator overloading, but of course that's not actually what we were discussing. Still, no literal overloading. Also, there are other differences between Rust and Swift's type systems that allow Rust to do type inference in a way that Swift cannot.