|
|
|
|
|
by dragonwriter
392 days ago
|
|
> No, return exiting the enclosing function scope from a block is the special case that's there to resolve an edge case. What is the edge case? It seems to be there so that Ruby enumeration methods can provide the behavior expected of looping statements (which is kind of necessary if you want the looping statements to just be semantic sugar for enumeration methods so that they can work correctly with any enumerable.) > Blocks should be nothing special. "Special" compared to what? |
|