Actions
Feature #11337
closedAllow rescue without begin inside blocks
Feature #11337:
Allow rescue without begin inside blocks
Description
While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible:
1.times do
abc
rescue
p 'error'
end
But this is possible
def a
abc
rescue
p 'error'
end
Would it be possible to also allow rescue without begin inside blocks too?
Actions