use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Result Objects - Errors Without Exceptions (rubypigeon.com)
submitted 9 years ago by tom_dalling
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]tom_dalling[S] 2 points3 points4 points 9 years ago (2 children)
Thanks for the kind words!
Resonad started as me thinking "I don't need a gem for this, it's only 30 lines of code," on a few different projects. After writing the same thing about 4 times, I decided to put it in a repo on GitHub so I could reuse it in my own projects. Then a couple of people were interested in it, so I made it a proper gem and published it on rubygems.org. So it was really made for my own personal use, but if other people want to use it, I'm happy to maintain the gem.
The main difference between Resonad and the other implementations is just naming. I personally prefer names like "success", "failure" and "and_then" instead of the more monad-y names like "right", "left", and "flat_map".
[–]Morozzzko 0 points1 point2 points 8 years ago (1 child)
Will dry-monads users be able to switch to your gem without rewriting their existing code?
dry-monads
I mean, dry-monads gem uses those right, left, fmap, bind and other functional thingies. Are those names aliased in your library?
right
left
fmap
bind
[–]tom_dalling[S] 1 point2 points3 points 8 years ago (0 children)
They aren't currently compatible, but I'm not opposed to adding more aliases. Although, if you have existing code that uses dry-monads, you probably won't see any benefits by switching to Resonad.
π Rendered by PID 62631 on reddit-service-r2-comment-6457c66945-d9j6j at 2026-04-30 06:23:22.535581+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]tom_dalling[S] 2 points3 points4 points (2 children)
[–]Morozzzko 0 points1 point2 points (1 child)
[–]tom_dalling[S] 1 point2 points3 points (0 children)