2 ms·
Blocks have been one of Ruby’s main language features and is heavily used, but I wonder, where did it originate from?
by Alifatisk 4y ago
Blocks have been one of Ruby’s main language features and is heavily used, but I wonder, where did it originate from?
- Jtsummers 4y agoRuby 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.