From: Marcin 'Qrczak' Kowalczyk Date: 2003-06-12T05:32:36+09:00 Subject: Re: multiple blocks or proc arguments to method Dnia nie 8. czerwca 2003 17:56, Shashank Date napisa�: > This syntax always bothers me. I think of [ ] as (array) index and > in most of the situations it plays well... > > Here it is synonym for .call( ) and I wonder why ? Probably because ( ) wants to be written after an expression. Unfortunately it can't work in Ruby, and [ ] was the most similar. There are other strange uses of [ ] as the "default" method of an object, or maybe a funny constructor: Dir["*.txt"], Hash[key1, value1, key2, value2]. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/