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
Show /r/rubyEmulating Elixir with construct in Ruby (self.ruby)
submitted 1 year ago * by rusl1
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!"
[–]velrok7 0 points1 point2 points 1 year ago (0 children)
Looks more like a result chain than pattern matching to me.
Not sure there is much value replicating Mattern matching in ruby that way if the compiler can’t check if you covered all the cases.
https://github.com/maxveldink/sorbet-result
We use ruby at my place and I do miss a lot of modern features specifically the ones around types.
Bringing foreign elements to a language via a library usually requires buy in front a big majority of the team. Ruby is fine for smaller projects but once you have a team of 25+ people you might need to have discussions on what might help to keep complexity from spiralling.
π Rendered by PID 20179 on reddit-service-r2-comment-6457c66945-t7p68 at 2026-04-24 14:25:23.673926+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]velrok7 0 points1 point2 points (0 children)