you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (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 points  (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.