On 11/09/2011, at 1:45 PM, Xavier Shay wrote: > > > On 23/08/11 23:48, Andrew Grimm wrote: > > I haven't found the monad pattern *directly* useful in ruby, but > understanding why it exists is good for your brain. I played around with some > ideas last week: > http://rhnh.net/2011/09/05/exercises-in-style
I think my brainwashing may be complete - I looked at some Obj-C code the other day and immediately saw a potential monad. (for the curious: there's a Maybe monad in Haskell which can be used to string together a sequence of operations which may or may not return a result. A sequence of Object#try calls would be the equivalent in ruby. This lends itself particularly well to a series of possibly-failing setup commands.) cheers Mark -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
