From: non.dmitriy@... Date: 2017-02-03T16:47:44+00:00 Subject: [ruby-core:79413] [Ruby trunk Feature#7882] Allow rescue/else/ensure in do..end Issue #7882 has been updated by Dmitriy Non. So... Is there any movement? ---------------------------------------- Feature #7882: Allow rescue/else/ensure in do..end https://bugs.ruby-lang.org/issues/7882#change-62843 * Author: Charlie Somerville * Status: Assigned * Priority: Normal * Assignee: Yukihiro Matsumoto * Target version: ---------------------------------------- The keywords `rescue`, `else` and `ensure` can be used when defining methods like so: ```ruby def foo # rescue # else # ensure # end ``` However when using a block delimited by do..end, you must use `begin`..`end` as well: ```ruby foo do begin # ... rescue # ... # ... end end ``` It would be nice to be able to drop the extra `begin`..`end` and use `rescue`, etc. clauses directly: ```ruby foo do # ... rescue # ... # ... end ``` I cannot think of any ambiguities this syntax would cause, but please correct me if I am wrong. -- https://bugs.ruby-lang.org/ Unsubscribe: