Hacker News new | ask | show | jobs
by masklinn 3376 days ago
Also rustc, though it doesn't quite have overloading in the Java sense: https://is.gd/s0oF79
2 comments

GHC doesn't either. Rust traits are heavily inspired by Haskell typeclasses… so it's like in your example.
Swift has overloading in the Java sense, and does allow overloading by return type.