Lambda syntax for methods and functions

Paulo Pinto pjmlp at progtools.org
Mon Dec 9 06:32:56 PST 2013


On Sunday, 8 December 2013 at 11:23:48 UTC, bearophile wrote:
> The relative Reddit thread explains another small feature of 
> the next C#:
>
> http://www.reddit.com/r/programming/comments/1sbkxl/a_quick_highlight_of_upcoming_c_language_changes/cdwedrh
>
>
> If I understand that, it's similar to allowing D code like this:
>
>
> bool foo(out int x) {
>     x = 10;
>     return true;
> }
> void main() {
>     if (foo(int y))
>         y.writeln;
> }
>
>
> Currently in D you have to write:
>
> void main() {
>     int y;
>     if (foo(y))
>         y.writeln;
> }
>
> Bye,
> bearophile

Another intesting thing for D community to know is that it will
gain a new JIT.

http://blogs.msdn.com/b/dotnet/archive/2013/11/18/ryujit-net-jit-compiler-ctp1-faq.aspx

And besides Windows Phone 8, the additional option to generate
native code for other targets as well was briefly mentioned
during the VS 2013 keynote as you can see from the comments.

--
Paulo


More information about the Digitalmars-d mailing list