From: Daryl Richter Date: 2005-10-12T23:00:16+09:00 Subject: Re: Default argument values for blocks Devin Mullins wrote: > Christophe Grandsire wrote: > >> Hey, what about ":(foo="bar"){puts foo}"? It's still not beautiful but >> it's >> still less annoying, and in Ruby we are already used to see colons at the >> beginning of a word. Of course, overloading ":" may not be considered >> a good >> idea, but it shouldn't be a parsing problem as this one would always be >> followed by a "(" (and that doesn't happen with symbols). And: >> >> collection.each:(foo="bar"){puts foo} >> >> isn't that bad :) . >> >> > +1 > > +1. Furthers Ruby/Smalltalk harmonic convergence. :) -- Daryl