From: "matz (Yukihiro Matsumoto)" Date: 2013-11-02T00:35:15+09:00 Subject: [ruby-core:58121] [ruby-trunk - Feature #9070] Introduce `---` as synonym of `end` keyword Issue #9070 has been updated by matz (Yukihiro Matsumoto). Assignee set to matz (Yukihiro Matsumoto) Hmm, interesting idea. But it looks bit ugly, isn't it? FYI, I have once experimented ';;' as replacement of 'end' (I even modified ruby-mode.el as well). But it turned out to be confusing, and I gave up. I am not sure your '---' idea will work. Seems better than ';;' at least. Matz. ---------------------------------------- Feature #9070: Introduce `---` as synonym of `end` keyword https://bugs.ruby-lang.org/issues/9070#change-42712 Author: alexeymuranov (Alexey Muranov) Status: Open Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: =begin This is just an idea: introduce "(({---}))" as synonym of "(({end}))" keyword. It is a bit easier to type and to read, and makes whitespace insensitive language look as if it follows off-side rule. Compare: class Person attr_reader :name, :age def initialize(name, age) @name, @age = name, age --- def <=>(person) # the comparison operator for sorting age <=> person.age --- def to_s "#{name} (#{age})" --- --- class Person attr_reader :name, :age def initialize(name, age) @name, @age = name, age end def <=>(person) # the comparison operator for sorting age <=> person.age end def to_s "#{name} (#{age})" end end =end -- http://bugs.ruby-lang.org/