Hi Guys

It seems so strange to me.
It is not visible at first sight how many "end" was included :(

2011/7/19 Shota Fukumori <sorah / tubusu.net>:
>
> Issue #5054 has been updated by Shota Fukumori.
>
>
> Hi,
>
> I like your proposal. I'd like to merge this.
> But this is new syntax, so if we merge this proposal, I recommend to merg=
e at 2.0.
>
> And I agree to indenting rule by Martin. This rule is more beautiful and =
human readable.
>
> P.S.: nobu said "there is editor problem" at rubykaigi. Anyone can write =
a patch for ruby.vim?
> ----------------------------------------
> Feature #5054: Compress a sequence of ends
> http://redmine.ruby-lang.org/issues/5054
>
> Author: ANDO Yasushi ANDO
> Status: Open
> Priority: Normal
> Assignee:
> Category:
> Target version:
>
>
> Though as matz said at rubykaigi2011 ruby is a quite good language, many =
people hate a long sequence of `end' like this:
>
> module MyModule
> =A0class MyClass
> =A0 =A0def my_method
> =A0 =A0 =A010.times do
> =A0 =A0 =A0 =A0if rand < 0.5
> =A0 =A0 =A0 =A0 =A0p :small
> =A0 =A0 =A0 =A0end
> =A0 =A0 =A0end
> =A0 =A0end
> =A0end
> end
>
> So, I'd like to propose introducing a special keyword, en(n+)d. Using thi=
s keyword, we can rewrite the above example like this:
>
> module MyModule
> =A0class MyClass
> =A0 =A0def my_method
> =A0 =A0 =A010.times do
> =A0 =A0 =A0 =A0if rand < 0.5
> =A0 =A0 =A0 =A0 =A0p :small
> =A0 =A0 =A0 =A0ennnnnd
>
> I know matz's already rejected a python-style block. He wrote:
>
>> it works badly with
>> =A0 * tab/space mixture
>> =A0 * templates, e.g. eRuby
>> =A0 * expression with code chunk, e.g lambdas and blocks
> http://www.ruby-forum.com/topic/108457
>
> These bad things won't occur by introducing en(n+)d.
>
> Some implementations already exists.
>
> JRuby
> - https://gist.github.com/1088363
>
> CRuby
> - http://www.atdot.net/sp/raw/kn9iol
> - http://d.hatena.ne.jp/ku-ma-me/20110718/p1
>
> Thanks for your consideration.
>
>
> --
> http://redmine.ruby-lang.org
>
>