Frankly we should discuss this in that light yes. Before Java did not
have these kinds of methods. Now it has... on streams at least. Which
means they will be used like that in Groovy as well. Which means they
will appear side-by-side in programs, if we add an alias or not.
bye blackdrag
On 01.11.2015 20:34, Juan Vazquez wrote:
Now that Java 8 uses the terms also, is it time to revisit?
Thanks
Juan
On Sunday, November 1, 2015, Konstantin Boudnik <[email protected]
<mailto:[email protected]>> 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
<[email protected] <javascript:;>> 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:[email protected] <javascript:;>
> > 41 Buckmaster Road m: +44 7770 465 077 xmpp:
[email protected] <javascript:;>
> > London SW11 1EN, UK w: www.russel.org.uk
<http://www.russel.org.uk> skype: russel_winder
> >
> >
--
-Juan