Re:Ruby 2.6
by zem on Monday December 24, 2018 @03:49PM
(#18754202)
one beautiful design decision ruby made really on was that every method would have the option to take a block of code when it was invoked. the code block gets passed to the method as a closure. this makes writing collection apis very pleasant, since so many of them involve passing in a single closure to operate on each element.
[ Parent
| on HN ]
There are no comments on this comment yet.