From: shyouhei@... Date: 2016-08-04T06:48:12+00:00 Subject: [ruby-core:76701] [Ruby trunk Feature#11337][Closed] Allow rescue without begin inside blocks Issue #11337 has been updated by Shyouhei Urabe. Status changed from Open to Closed Hmm.. Thank you for the check. It is complicated than I thought. Closing this one anyway. ---------------------------------------- Feature #11337: Allow rescue without begin inside blocks https://bugs.ruby-lang.org/issues/11337#change-59919 * Author: Rodrigo Rosenfeld Rosas * Status: Closed * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- 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? -- https://bugs.ruby-lang.org/ Unsubscribe: