Re: => Lambda shorthand syntax
Martin Bähr <mbaehr-J82dVEKiPgVsIEQYbtjsvCEcasqEdqbRs2V0tQ3P5b8@public.gmane.org>
| Newsgroups | gmane.comp.lang.pike.devel,gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Excerpts from Stephen R. van den Berg's message of 2015-03-14 10:45:22 +0100:
> Has anyone ever considered adding support for the => shorthand lambda
> operator to Pike?
>
> It's available in several languages. The docs for C# are here:
> https://msdn.microsoft.com/en-us/library/bb397687(v=vs.110).aspx
there is also the block syntax from smalltalk and ruby:
[ mixed arguments | code; ]
{ mixed arguments | code; }
i am not sure if there is really a big advantage of using
(mixed arguments) => { code; }
over
lambda(mixed arguments){ code; }
how does it help with readability?
greetings, martin.