From: "alexeymuranov (Alexey Muranov)" Date: 2013-11-02T02:44:16+09:00 Subject: [ruby-core:58124] [ruby-trunk - Feature #9070] Introduce `---` as synonym of `end` keyword Issue #9070 has been updated by alexeymuranov (Alexey Muranov). matz (Yukihiro Matsumoto) wrote: > 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. So, maybe the Feedback status for now? I imagine this is a matter of personal taste, i proposed because i think i would have liked my code to look like that. This looks to me like the best approximation to the indentation based syntax without being indentation based. ---------------------------------------- Feature #9070: Introduce `---` as synonym of `end` keyword https://bugs.ruby-lang.org/issues/9070#change-42714 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/