From: "T. Onoma" Date: 2003-11-27T04:07:58+09:00 Subject: Re: Controlled block variables On Wednesday 26 November 2003 07:42 pm, Dave Brown wrote: > In article <200311260920.29155.transami@runbox.com>, > > T. Onoma wrote: > : that said, now perhaps someone can explain to me why the #call is need? > : is there some reason the interpretor can't deal with just > : > : p(a,b) > : > : couldn't Ruby just give precedence to proc evaluation similiar to local > : precedence? > > p[a,b] will do as you expect. Proc#[] actually calls the code in > a Proc object. You know I actually just noticed that the other day. And to be honest I would just never do it, b/c I would look at my code and immediately think Array or Hash. Poor semantic distinction == much confusion == difficult code maintainence. -t0