Gavin Kistner
9/30/2004 2:14:00 AM
On Sep 26, 2004, at 10:59 AM, Austin Ziegler wrote:
> On Mon, 27 Sep 2004 00:32:01 +0900, Brian Candler
> <b.candler@pobox.com> wrote:
>> How do people feel about
>>
>> myhash.each{|key,value| ... }
>>
>> raising an ArgumentError, forcing you to rewrite it as
>>
>> myhash.each{|(key,value)| ... }
#each_pair exists...I never even knew you could throw two params in the
block for #each until recently.
Thus, I don't personally care if it raises an error if you don't wrap
them in parens (although I don't like the |(aaa,bbb)| look) or fails to
work altogether :)