From: Lazaridis Ilias Date: 2011-07-22T10:29:37+09:00 Subject: [ruby-core:38371] [Ruby 1.9 - Feature #5065] Allow "}" as an alternative to "end" Issue #5065 has been updated by Lazaridis Ilias. Eric Hodel wrote: > Switched categories to match #5054 Mr. Hodel, I understand your friendly intention, but I didn't meant to "extend" the joke in #5054 (btw: I find an "endall" not a joke, but a worthy construct, too). I would really like to have the ability to use "}" (or possibly another char) in order to end a block started by "module, class, def" etc. ---------------------------------------- Feature #5065: Allow "}" as an alternative to "end" http://redmine.ruby-lang.org/issues/5065 Author: Lazaridis Ilias Status: Open Priority: Normal Assignee: Category: Joke Target version: =begin I've noticed issue #5054, subjecting an "endall". module MyModule class MyClass def my_method 10.times do if rand < 0.5 p :small endall To reduce typing, but to keep the levels, the following construct could be allowed: module MyModule class MyClass def my_method 10.times { # "10.times do" would work, too if rand < 0.5 p :small } } } } } The speciality of this language would be, that an opening brace is not necessary Several constructs allow already the use of "{}" (do / end), thus this would be possibly the consistent way to reduce typing effort, but to keep the structure intact. =end -- http://redmine.ruby-lang.org