back

by Alifatisk·3y ago·view on hn ↗
Blocks have been one of Ruby’s main language features and is heavily used, but I wonder, where did it originate from?
1 comments
Ruby blocks are distinct from the blocks this article is talking about. They are equivalent to “closures” in most other languages. For Ruby, its blocks and their ubiquitous comes from Smalltalk.