@djspiewak dude. Every scala functor violates the law you describe. Functions can close mutable state cc> @marius
@djspiewak @jsuereth @marius Pick on flatMap, not just map. Same mistake, bigger consequences.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@dibblego@djspiewak@marius Ok, so the Monad law is violated if you allow throwing functions into your category.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@dibblego@djspiewak@marius specifically left identity: f(x) == Try(x) flatMap fThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@dibblego@djspiewak@marius That's where f: A => Try[B] and x: => AThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.