Hi --

On Fri, 12 Sep 2008, Michal Suchanek wrote:

> 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.

You can still do this with array and hash constructors:

a = [1,2,3,4,]  # etc.


David

-- 
Rails training from David A. Black and Ruby Power and Light:
   Intro to Ruby on Rails  January 12-15   Fort Lauderdale, FL
   Advancing with Rails    January 19-22   Fort Lauderdale, FL *
   * Co-taught with Patrick Ewing!
See http://www.rubypal.com for details and updates!