4 ms·
Rust takes more from OCaml and Haskell than Scala, but it's very inspired by functional languages, it's not just you.
by steveklabnik 13y ago
Rust takes more from OCaml and Haskell than Scala, but it's very inspired by functional languages, it's not just you.
- eranation 13y agoI don't know OCaml much but the syntax for pattern matching, Tuples, Traits, the fact that map, filter etc are methods on the collection (unlike F# or Haskell) feels more like in Scala than pure functional to me.
- pcwalton 13y agoYeah, Rust tries to integrate method syntax into the language more than OCaml (whose object system is kind of separate) and Haskell (which doesn't have an object system). It's a different approach from Scala, though: we don't have inheritance or virtual methods outside of traits (which are like interfaces).