From: Robert Klemme Date: 2010-07-11T21:00:14+09:00 Subject: Re: what about allowing to specify, which end belongs to which start? On 11.07.2010 13:37, Jan Lelis wrote: > Thank you for all the opinions :) > > Robert wrote: >> endclass >> endmodule >> enddef >> endbegin >> endif >> endunless >> endwhile >> enduntil >> endfor >> enddo >> endcase >> >> Did I miss one? >> >> Each of those would be then alternatively allowed to "end", so you > could >> write >> >> begin >> if foo >> else >> case x >> when y >> when z >> endcase >> end >> endbegin >> >> I still don't like it. >> > > I agree, that does not look good. But with a little punctation, it > becomes more readable: ... and much less typeable on my keyboard (German). > begin > if foo > else > case x > when y > when z > end~case > end > end~begin > > Also compare the readability of the whole list with the token version: > > end~class > end~module > end~def > end~begin > end~if > end~unless > end~while > end~until > end~for > end~do > end~case > > The token version might be easier to implement, but I think, it is not > satisfying. The whole concept is dissatisfying to me. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/