24 ms·
So I regularly jump between Scala and Rust and it's more a feeling. In that overall the way option types, pattern matching, FP operations e.g. map/filter, immu
by threeseed 2y ago
So I regularly jump between Scala and Rust and it's more a feeling.
In that overall the way option types, pattern matching, FP operations e.g. map/filter, immutability by default and type parameters have been implemented are very similar to Scala. And since these make up a large percentage of the everyday code you write you see the similarity as being larger than maybe it is.
- akkad33 2y agoAll these are just functional features you find in every functional language though. Rust was highly influenced by OCAML and other ML languages
- threeseed 2y agoHence why I said it was a feeling. And I think the fact the overall style of the language e.g. braces, semicolon, method signatures, loop handling is so similar to Scala versus OCaml contributes to this.