On 12/09/2008, Michael Neumann <mneumann / ntecs.de> wrote:
> Michael Fellinger schrieb:
>
> > On Tue, Sep 2, 2008 at 3:09 PM, Yugui (Yuki Sonoda) <yugui / yugui.jp>
> wrote:
> >
> > > Hi all,
> > >
> > > As announced before, Ruby 1.9.1 features will be frozen on 25 September.
> > >
> > > After the time,
> > >  * Ruby level APIs must not changed.
> > >
> >
> > I was wondering about the syntax change from 1.8 to 1.9 regarding the
> > `[]` method
> >
> > == The source
> >  class Dictionary
> >    def self.[](*args)
> >      args
> >    end
> >  end
> >
> >  p Dictionary[1,2,3,]
> >
>
>                      ^^^
>
>  Are you sure this trailing "," is not the source of the syntax error?
>

Disallowing that will also break stuff. And I will surely miss it. It
makes lists easier to modify - you can add and delete at the end as
well, not only in the middle.

Thanks

Michal