3 ms·
> A return statement in a block is more or less a call to an escape continuation. So? > Most programmers don't know what an escape continuation is Not that t
by masklinn 14y ago
> A return statement in a block is more or less a call to an escape continuation.
So?
> Most programmers don't know what an escape continuation is
Not that they have any reason to care.
> There's no reason to believe that people are just going to divine their meaning.
I don't think I ever said that.
> And if they're new to Ruby, they're not going to understand what a block is, pretty much by definition. It's a feature that's pretty unique to Ruby.
It's not for any known value of "unique". Blocks are present in most C-like languages, and first-class blocks were introduced by Smalltalk.