r/functionalprogramming • u/ToreroAfterOle • Apr 12 '24
Question FP language "siblings"
I know this is a subjective thing, but I am just curious...
Which language does it feel most similar to work with as when you work with Scala and ZIO or Cats Effect? I have some suspicion Haskell (since I've read in passing that at least Cats Effect was heavily inspired by Haskell) and possibly OCaml might most closely fit the bill. But this is entirely based on speculation since I have no first hand experience doing anything meaningful with any other FP language besides Scala.
Does anyone have some insight they can share?
View all comments
Show parent comment
2
u/XDracam Apr 14 '24
F#'s defaults are pure, and F# code itself is usually pure unless optimized for performance or for interaction with dotnet. You can usually assume that an F# function you call is pure if it returns something.
Scala is ambivalent. Pure code and mutable code are supported equally well. There is a large pure ecosystem, but also a massive OOP and imperative ecosystem.