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
3
u/ToreroAfterOle Apr 13 '24 edited Apr 13 '24
I don't think anyone's saying ITT there's anything wrong with it.
I think going for pure FP has both pros and cons. I find grokking a codebase goes even faster and it feels smoother and more satisfying to make illegal states unrepresentable. OTOH, it does sometimes feel like an extra effort compared to "regular" FP. I know it's not for everyone, but to me it's totally worth it.
I program in Python at my current job which also has its own set of pros and cons. I'm hoping to do full time FP (of either variety) again some day, though...