On Oct 28, 2005, at 7:03 AM, gwtmp01 / mac.com wrote:

>
> On Oct 28, 2005, at 5:24 AM, Sean O'Halpin wrote:
>
>> On 10/27/05, gwtmp01 / mac.com <gwtmp01 / mac.com> wrote:
>>
>>
>>> Why are arguments to the '[]' method parsed differently
>>> than a standard method?
>>>
>>>
>>
>> Because () and [] are parsed differently. [] is primarily an array
>> reference (aref).
>>
>
> But *why* are they parsed differently?  Just "because"?

Hash::[] is the only reason [1 => 2] is allowed, see: ruby-talk:163033

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04