3 ms·
Didn't Ruby have dynamic scoping in day 1? Dynamically scoped lambdas are different lambdas, and much less useful.
by Peaker 14y ago
Didn't Ruby have dynamic scoping in day 1? Dynamically scoped lambdas are different lambdas, and much less useful.
- alinajaf 14y agoIf I'm understanding you correctly, I believe it has both. Blocks act as closures and lambdas are dynamically scoped, though you can convert between the two and change the scoping in either case.