Monads are clunky. They are a hassle to work with, especially when you have to deal with different kinds of Monadic context because they do not compose (in real life, this is usually the case) Scala gives you the worst of both worlds when it comes to dealing with Monads.
-
Show this thread
-
Scala has got Monads/Monad-like structures, but it is not explicit about it. You are then faced with the clunkiness of working with Monads and you do not know why life is hard.
1 reply 1 retweet 0 likesShow this thread -
I have seen/experienced frustration due to not having the mental model around two basic abstractions: Functors and Monads. It does not help that they are not explicit in the language. But if you look at the types in Scala stdlib, you find these structures in there anyways!
1 reply 0 retweets 1 likeShow this thread -
Advice? Learn a language that makes all these concepts (ADTs, Typeclasses, Effects etc) bear...e.g Haskell, PureScript...and then come back to Scala... If possible, ditch as much of the standard library and work with Cats or Scalaz
2 replies 1 retweet 5 likesShow this thread -
Replying to @dadepo
When you use a language that has proper support for FP you won’t want to come back to Scala..
4 replies 0 retweets 6 likes
Correct. Here's another tip: do not accept, and even proactively avoid, advice on "how to learn" from scala programmers.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.