Re:"Useless syntax sugar": Numbered block parameters in Ruby
by inopinatus on Thursday October 12, 2023 @12:28AM
(#37853495)
Fun fact, the arity of functions generated by Symbol#to_proc is not 1 but -2 (that is, additional arguments are passed through as well), so we can write stuff like
if one were so inclined.
[ Parent
| on HN ]