Anonymous function syntax

John Chapman john at ch.com
Sat Sep 24 00:14:13 PDT 2011


== Quote from Jonathan M Davis (jmdavisProg at gmx.com)'s article
> On Friday, September 23, 2011 23:42:52 Andrei Alexandrescu wrote:
> > On 9/23/11 8:03 PM, Martin Nowak wrote:
> > > On Thu, 22 Sep 2011 22:54:55 +0200, Andrei Alexandrescu
> > > <SeeWebsiteForEmail at erdani.org> wrote:
> > > I want to add some points against introducing this particular syntax.
> > >
> > > 1. Foremost using '=>' is unfamiliar. Comming from C++ or Java you
> > > really have to learn reading it.
> > > If you weighted the lambda syntaxes with the tiobe factor, arrows would
> > > be a minority.
> >
> > Well the C++2011 lambda syntax is quite foreign for C++ users, too.
> And Andrei's suggested syntax is very similar to C#'s lambda syntax, so it
> _is_ a syntax familiar to some of the programmers who use a major language
> derived from C++. It's certainly going to be more familiar than the syntax of
> any of the functional languages out there.

Java's adopting the C# syntax for its lambdas too.
http://java.dzone.com/news/java-8-lambda-syntax-decided

And is it that hard to learn?


More information about the Digitalmars-d mailing list