Also, you don't need full continuations for this, just continuations with dynamic extent. (E works this way, plus it defines 'return' as syntactic sugar for calling the enclosing method's continuation.)
Since I don't know much Ruby I'm not sure if its blocks have other advantages.
Since I don't know much Ruby I'm not sure if its blocks have other advantages.