From: Trans Date: 2005-10-13T15:46:53+09:00 Subject: Re: Default argument values for blocks Christophe Grandsire wrote: > collection.each:(foo="bar"){puts foo} Ha! How ironic, I thought of that last night too. But after playing with I decided I did not like it. The colon has too much "seperation" semantic, I think. And think of the Python converts ;) Indeed I have. I was thinking that the colon might be a nice way to go without 'do': collection.each: puts "foo" end With todays kind of block arguments: collection.each: |foo| puts foo end But we're after outer arguments, so with Matz/Perl notation: collection.each->(foo): puts foo end I've tried every punctuation combination I can think of. I think I like that best. Though I might suggest a word form for those who do not: collection.each fn(foo): puts foo end T.