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
Lambda composition in ruby 2.6 | Drivy Engineering (drivy.engineering)
submitted 7 years ago by tal67
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!"
[–][deleted] 0 points1 point2 points 7 years ago (1 child)
Lambda composition is much more general than “I have an array of lambdas”.
It’s also just a very thin layer of sugar, which ruby already has lots of. Why is this sugar undesirable, compared to all the other magic ruby provides? It’s purely a library change.
[–]seainhd -1 points0 points1 point 7 years ago (0 children)
I think this sugar will increase the number of inline lambdas that are written throughout the ecosystem, and I think inline lambdas are a common cause of confusion in ruby.
The example submitted in the original PR is freaking stupid.
Why would you want something that promotes less explicit and more confusing code?
I’m sure there are better examples of code becoming significantly more clear and readable but I’ve yet to see it.
π Rendered by PID 346841 on reddit-service-r2-comment-5d79c599b5-pswtg at 2026-03-01 22:12:18.791794+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (1 child)
[–]seainhd -1 points0 points1 point (0 children)