Probably because of the Ruby inspired syntax which just brings joy. Hopefully the ecosystem can grow and partially catch up as well
Personally, I thought the muddled Proc, block, and lambda situation a mess, coming from Scheme 30 years ago to Ruby 20 years ago.
Scheme is a small language which achieves expressiveness by allowing you great freedom to push the language into bold new forms.
Ruby (especially with Rails which should almost be considered a separate language) is a big language where simplicity is maintained by informal convention.
Ruby has lots of muddles and messy features, good Ruby code bypasses them.
Why not use one (probably just block) for everything? Coming from ruby 10 years ago.
End
End
End
End
EndYou have the option to define named methods that yield or to use the short one-parameter syntax where this:
method do |param|
param.some_method
end
becomes method &.some_method