groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Vazquez <juanvazq...@gmail.com>
Subject Re: Adding map, reduce, filter as aliases for collect, inject, grep methods
Date Sun, 01 Nov 2015 18:01:59 GMT
I prefer the map/reduce/filter names also..(I am the author of extention
module mentioned). What I don't necessarily like about the Ext module I
wrote is that I had to pass a String with the desired operator. Is there is
a way to pass operators around like a function?

Thanks,
Juan

On Sunday, November 1, 2015, Keith Suderman <suderman@anc.org> wrote:

> +1
>
> I prefer the names map/reduce/filter. However, as Russel pointed out, the
> other times this has been brought up the “opposers” have prevailed with the
> argument that it is easy enough for people to add these methods themselves
> with an extension modules [1] or with a simple category class.  The few
> times I’ve wanted these methods I usually just go with a category class.
>
> Cheers,
> Keith
>
> [1]
> http://javazquez.com/juan/2013/02/05/add-map-reduce-and-filter-to-groovy-with-groovy-extension-modules/
>
> > On Nov 1, 2015, at 2:14 AM, Pascal Schumacher <pascalschumacher@gmx.net
> <javascript:;>> wrote:
> >
> > Hi everybody,
> >
> > what about adding the more common names of map/reduce/filter for the
> Ruby inspired collect/inject/grep methods?
> >
> > Imho these names are more descriptive and would make it easier for
> beginners.
> >
> > What do you think?
> >
> > -Pascal
>
> ------------------------------
> Research Associate
> Department of Computer Science
> Vassar College
> Poughkeepsie, NY
>
>
>

-- 
-Juan

Mime
View raw message