Expression closures - use-cases for shortcut lambda syntax (blocks)

Igor Bukanov igor at mir2.org
Sat Mar 17 15:03:06 PDT 2007


On 17/03/07, Vassily Gavrilyak <gavrilyak at gmail.com> wrote:
...
> Now this is easy to fix and C# 3 fixed, providing inference and
> anonymouse functions shortcuts
>
> Now people can write shortly and typed
> people.OrderBy( it => it.name)
> ES4 is almost as good, but still longer
> people.orderBy(function(it) it.name)
> So people would still use shorter untyped version.

So why not to propose C# syntax? IMO
 array.filter(elem => elem > 0)
looks better than
 array.filter((\elem) elem > 0)

Regards, Igor



More information about the Es4-discuss mailing list