Return-Path: X-Original-To: apmail-groovy-dev-archive@minotaur.apache.org Delivered-To: apmail-groovy-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88FFC180A9 for ; Sun, 1 Nov 2015 19:34:28 +0000 (UTC) Received: (qmail 22631 invoked by uid 500); 1 Nov 2015 19:34:28 -0000 Delivered-To: apmail-groovy-dev-archive@groovy.apache.org Received: (qmail 22305 invoked by uid 500); 1 Nov 2015 19:34:28 -0000 Mailing-List: contact dev-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list dev@groovy.incubator.apache.org Received: (qmail 21882 invoked by uid 99); 1 Nov 2015 19:34:28 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2015 19:34:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 886BE1A0847 for ; Sun, 1 Nov 2015 19:34:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.9 X-Spam-Level: ** X-Spam-Status: No, score=2.9 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BpqXUscsC7Pj for ; Sun, 1 Nov 2015 19:34:16 +0000 (UTC) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 102FF2165B for ; Sun, 1 Nov 2015 19:34:16 +0000 (UTC) Received: by igvi2 with SMTP id i2so37330777igv.0 for ; Sun, 01 Nov 2015 11:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NQYq/BcmCXODVw6hX/rU3DpKnWZkREaxnj2whGTkdZ8=; b=JTsfL5CZSEQA+MG22weykQfHdkoOIn/1CG3jJnw8MLohvAGRVFGWtO1gli36XUFcwg LWDxHobDBbURb+VpQFbTL8t0fYaCAqeVZcfgx6Sx57VIk+lN0jcBA3W53N/ZGAXFSF8f wrmmwaBc5NvKGkDxwfbvAwzmvg62HFkFIWtyFKpd7jOqmIO8DdmXicYxHubqrxMrPpmp gCuZ4zmlLmhg94//ZMILNgpq+xd0q1HeAPmAmgMBYqe1pPJzBU4gV2iXWzmG54iWiiT0 EtccF8dBU0/yeQGtE05B1kkz9WX/u1C/iXZhADM9zkYEo02bGQ+Nq3hX9FCth6XWFPLa zCFg== MIME-Version: 1.0 X-Received: by 10.50.156.103 with SMTP id wd7mr7121090igb.75.1446406449166; Sun, 01 Nov 2015 11:34:09 -0800 (PST) Received: by 10.79.1.228 with HTTP; Sun, 1 Nov 2015 11:34:09 -0800 (PST) In-Reply-To: <20151101192106.GQ4378@tpx> References: <5635BBB8.2080507@gmx.net> <1446388617.15552.13.camel@winder.org.uk> <20151101192106.GQ4378@tpx> Date: Sun, 1 Nov 2015 13:34:09 -0600 Message-ID: Subject: Re: Adding map, reduce, filter as aliases for collect, inject, grep methods From: Juan Vazquez To: "dev@groovy.incubator.apache.org" Content-Type: multipart/alternative; boundary=001a1136b2d69a816f05237fbe26 --001a1136b2d69a816f05237fbe26 Content-Type: text/plain; charset=UTF-8 Now that Java 8 uses the terms also, is it time to revisit? Thanks Juan On Sunday, November 1, 2015, Konstantin Boudnik wrote: > On Sun, Nov 01, 2015 at 12:20PM, Fernando Ariel Niwes Naufal wrote: > > As a developer, to have many names for the same operations is confusing. > I > > always doubt if there is a slight difference or not, also makes harder to > > read code written by another person, as they can chose to use the variant > > that I am not used to. > > Agree big time. Unless you know the implementation by heart you'd be always > mislead by one person using collect and another sticking to map (or > whatever). > API aliasing isn't that helpful, with my developer hat on. > > Cos > > > Also, as usual developer of C# and Javascript, was not difficult to me to > > learn the equivalence. > > > > A clarification in the documentation about what's the name of the same > > concept in other programming languages is, for me, more than enough. > > > > On Sun, Nov 1, 2015 at 11:36 AM, Russel Winder > wrote: > > > > > On Sun, 2015-11-01 at 08:14 +0100, Pascal Schumacher wrote: > > > > Hi everybody, > > > > > > > > what about adding the more common names of map/reduce/filter for the > > > > Ruby inspired collect/inject/grep methods? > > > > > > Whilst it maybe that James and Bob picked the names from Ruby, Ruby got > > > (at least most of) them from Smalltalk. So perhaps in the above > > > s/Ruby/Smalltalk/. > > > > > > > Imho these names are more descriptive and would make it easier for > > > > beginners. > > > > > > > > What do you think? > > > > > > This argument has been had many times before in the last 12 years. > > > Invariable there are those who think yes and those who oppose. To date > > > the opposers have won out, usually on the grounds of "why change?" and > > > "breaks backward compatibility". > > > > > > You will note that GPars supports both names :-) > > > > > > -- > > > Russel. > > > > > > > ============================================================================= > > > Dr Russel Winder t: +44 20 7585 2200 voip: > > > sip:russel.winder@ekiga.net > > > 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk > > > > London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder > > > > > > > -- -Juan --001a1136b2d69a816f05237fbe26 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Now that Java 8 uses the terms also, is it time to revisit?
Thanks
Juan

On Sunday, November 1, 2015, = Konstantin Boudnik <cos@apache.org= > wrote:
On Sun, Nov 01, 2015 at 12:20= PM, Fernando Ariel Niwes Naufal wrote:
> As a developer, to have many names for the same operations is confusin= g. I
> always doubt if there is a slight difference or not, also makes harder= to
> read code written by another person, as they can chose to use the vari= ant
> that I am not used to.

Agree big time. Unless you know the implementation by heart you'd be al= ways
mislead by one person using collect and another sticking to map (or whateve= r).
API aliasing isn't that helpful, with my developer hat on.

Cos

> Also, as usual developer of C# and Javascript, was not difficult to me= to
> learn the equivalence.
>
> A clarification in the documentation about what's the name of the = same
> concept in other programming languages is, for me, more than enough. >
> On Sun, Nov 1, 2015 at 11:36 AM, Russel Winder <russel@winder.org.uk> wrote:
>
> > On Sun, 2015-11-01 at 08:14 +0100, Pascal Schumacher wrote:
> > > Hi everybody,
> > >
> > > what about adding the more common names of map/reduce/filter= for the
> > > Ruby inspired collect/inject/grep methods?
> >
> > Whilst it maybe that James and Bob picked the names from Ruby, Ru= by got
> > (at least most of) them from Smalltalk. So perhaps in the above > > s/Ruby/Smalltalk/.
> >
> > > Imho these names are more descriptive and would make it easi= er for
> > > beginners.
> > >
> > > What do you think?
> >
> > This argument has been had many times before in the last 12 years= .
> > Invariable there are those who think yes and those who oppose. To= date
> > the opposers have won out, usually on the grounds of "why ch= ange?" and
> > "breaks backward compatibility".
> >
> > You will note that GPars supports both names :-)
> >
> > --
> > Russel.
> >
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
> > Dr Russel Winder=C2=A0 =C2=A0 =C2=A0 t: +44 20 7585 2200=C2=A0 = =C2=A0voip:
> > sip:russel.winder@ekiga.net
> > 41 Buckmaster Road=C2=A0 =C2=A0 m: +44 7770 465 077=C2=A0 =C2=A0x= mpp: russel@winder.org.uk
> > London SW11 1EN, UK=C2=A0 =C2=A0w: www.russel.org.uk=C2=A0 skype: russel_winder > >
> >


--
-Juan
--001a1136b2d69a816f05237fbe26--