From: rr.rosas@... Date: 2016-08-03T19:23:36+00:00 Subject: [ruby-core:76686] [Ruby trunk Feature#11337] Allow rescue without begin inside blocks Issue #11337 has been updated by Rodrigo Rosenfeld Rosas. http://www.redmine.org/projects/redmine/wiki/RedmineIssues "duplicates - Links issues so that closing one, will close the other (e.g. closing A will close B) For example, if issue B duplicates A: - closing B will leave A open - closing A will automatically close B duplicated by - Reciprocal of duplicates. For example, if issue A is duplicated by issue B: - closing B will leave A open - closing A will automatically close B" I'm not sure I completely understand this but it seems to be possible to close the duplicates without closing the original even though they would be automatically closed if using the right relation :) ---------------------------------------- Feature #11337: Allow rescue without begin inside blocks https://bugs.ruby-lang.org/issues/11337#change-59902 * Author: Rodrigo Rosenfeld Rosas * Status: Open * 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: