On Thu, 27 May 2004 05:23:12 +0000, Martin DeMello wrote:

Hi,

> gabriele renzi <surrender_it / remove.yahoo.it> wrote:
>> il Tue, 25 May 2004 12:22:53 -0600, "Ara.T.Howard" <ahoward / noaa.gov>
>> ha scritto::
>> 
>> >
>> >i must say that idea of a collecting block syntax is a nice one...
>> 
>> please, no more syntax :)
> 
> What do you have against syntax? (:

I think it will not work with this syntax.  
What means the following:
  mymethod [ a ]
call mymethod, and collect a for each iteration, or call mymethod
with an array?

> 
>>  I believe that in the case a collecting/non collecting dychotomy
>> should exist it should be something at the convention level, like !
>> for dangerous methods

to_enum.to_a works with the current syntax:
(2..10).to_enum(:step, 3).to_a
=> [2, 5, 8]

> 
> Add % to the list of acceptable method name suffixes? (I'd say we've
> pretty thoroughly colonised the keyboard by now - good free symbols are
> hard to find.)
> 

That's true.  I think every common symbol is used.
Fortunately they are arranged so as not to make ugly combinations.  
Imagine having to type $_->$*@ or something. 
Adding new syntax in an elegant way is not so easy...

Cheers,
Kristof