Hi --

On Fri, 1 Jun 2007, zarawesome / gmail.com wrote:

> On Jun 1, 3:00 am, james.d.mast... / gmail.com wrote:
>> Rewrite this longhand as:
>>
>> $list = [];
>> $list = $list + [function()];
>>
>> Which really means:
>>
>> $list = [] + ["d"]
>
> Yeah, figured. It's just odd, and allows for some nice obfuscated
> coding.

I'm not sure how you'd obfuscate anything using +=.  As far as I know,
it's completely consistent in the way it's parsed, and thoroughly
documented.  Once you know how it works, the obfuscation mysteriously
vanishes :-)


David

-- 
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
    (See what readers are saying!  http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)