@wfaler Haskell's `do` doesn't have `if`-guards. You instead use `guard` function, but the underlying data structure must be a MonadPlus.
-
-
Replying to @missingfaktor
@missingfaktor@wfaler To use `if` guards in Scala, the M[_] must have a `filter` method. In Scala, you are also forced to end with a `map`.2 replies 0 retweets 1 like -
Replying to @purefn
@purefn@missingfaktor@wfaler There's also that aspect where for comprehensions are structural typing, as opposed to requiring a type.1 reply 0 retweets 1 like -
Replying to @seanparsons
@seanparsons@missingfaktor@wfaler True, they're also not type-safe. You can mix List, Option, etc. It's why I prefer using >>= to flatMap1 reply 0 retweets 1 like -
Replying to @purefn
@purefn@seanparsons@wfaler Can you give an example of where this behavior (List and Option allowed to be mixed) has been troublesome?2 replies 0 retweets 0 likes
@missingfaktor @purefn @seanparsons @wfaler oh god yes. Scala's flatMap is totally fucking broken.
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.