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/ToreroAfterOle Apr 12 '24 edited Apr 12 '24
I feel like Rust found its own more procedural programming-friendly ways to handle some of the problems Monads solve. It does so by having a killer compiler, badass type system, favoring immutability, and async support via Tokio.
Besides Haskell, are there any other languages that have IO even if it comes from libraries like Scala's ZIO, Cats Effect, and TypeScript's Effect.ts? I'd be interested in learning if OCaml, Erlang/Elixir, or F# have something similar. Though the sense that I get from reading about Elixir is that it doesn't make use of Monads opting for its own really powerful way to handle concurrency