From: David MacMahon Date: 2013-11-01T11:02:17-07:00 Subject: [ruby-core:58125] Re: [ruby-trunk - Feature #9070] Introduce `---` as synonym of `end` keyword On Nov 1, 2013, at 10:44 AM, alexeymuranov (Alexey Muranov) wrote: > This looks to me like the best approximation to the indentation based syntax without being indentation based. One easy way to get that appearance right now would be to append ";end" to the end of the preceding line: 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 Of course, when adding a new method at the end of class Person you need to make sure to put it in between the two ";end" statements. Disclaimer: I am not advocating this solution; I am just pointing out that it could be done this way. I personally like having outdented "end" statements on separate lines, but this is obviously a subjective preference. Giving lexical significant to the amount of whitespace at the beginning of line really bothers me and is one of the reasons I prefer Ruby to Python! :-) Dave