5 ms·
This is pretty cool. To my surprise, I found many language constructs similar to Scala. Is it just me? It's like go and Scala mashed together with the good par
by eranation 13y ago
This is pretty cool.
To my surprise, I found many language constructs similar to Scala. Is it just me?
It's like go and Scala mashed together with the good parts from both syntaxes.
- steveklabnik 13y agoRust 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).
- rm445 13y agoThere's tons of Python too, wouldn't you say? In a way, it's good - people are discovering what works and moving it forwards. Language fragmentation often seems like a shame - because most of the time, programming languages don't fit into different niches, we just have a multitude of general-purpose languages with a few special features to argue over. There's some hope that, over long periods of time (longer than our typical careers) languages will combine good features, genetic-algorithm style, and in the end we'll get even better languages.
- bjz_ 13y agoScala and Rust share common roots in ML and Haskell. I would say it's more like a mash between C++, ML and Haskell.