6 ms·
It's awkward to do Functional Programming, when all the libraries (including the standard one) for your language built around mutation. F# (and other FP langua
by sideeffffect 4y ago
It's awkward to do Functional Programming, when all the libraries (including the standard one) for your language built around mutation.
F# (and other FP languages, like Scala) have standard libraries which come with (and are built around) persistent collections (immutable collections, but with smart structural sharing when doing copy-on-write). And all the other libraries and the whole community is designed for Functional Programming.
There are also other aspects, that FP languages like F# or Scala tend to have shorter and prettier syntax. And many of the FP idioms are easier to express in these languages. Good example would be ADTs (algebraic data types), or Computation expressions in F# and its analogue in Scala for-comprehension. But these are more subjective reasons than my former point.