I’m really excited about transducers, but am having trouble explaining them to people. I guess this is how Haskellers feel about monads?
-
-
@avibryant I was wondering about that. Here’s hoping someone does.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@avibryant More conversations about this on HN / Twitter:https://twitter.com/swannodette/status/497397071595708416 … -
@zaneshelby 1/ I'm not up enough on Haskell or lenses to contribute. From a Smalltalk/Ruby/Scala point of view, the insight here looks like -
@zaneshelby 2/ "instead of making everything collection/stream-like implement foreach, and defining everything else in terms of that..." -
@zaneshelby 3/ "...you make everything collection/stream-like implement foldLeft, and define things in terms of that." -
@zaneshelby 4/ I have a vague intuition as to why this is preferable (basically: because it makes the state more explicit). -
@zaneshelby 5/ which is more or less the same intuition as to why monads are useful, though I don't think these are actually isomorphic. -
@avibryant That sounds about right. The state observation is interesting. Looking forward to thinking about this more.
End of conversation
New conversation -
-
-
@avibryant@zaneshelby I think I had that argument with@alanmalloy a few years ago and won. -
@avibryant@zaneshelby@alanmalloy the actual point I argued was that monads are equivalent to calling reduce on a sequence of functions.
End of conversation
New conversation -
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.