[Issue 13451] Lambda syntax with explicit return type not documented

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 9 16:44:19 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13451

Jakob Ovrum <jakobovrum at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakobovrum at gmail.com

--- Comment #3 from Jakob Ovrum <jakobovrum at gmail.com> ---
(In reply to hsteoh from comment #1)
> I had no idea this syntax was supported. Is it intentional, or is it an
> oversight in the implementation?

It's a hold-over from the other function literal syntax:

auto fp = function int(int a) { return a; };

It's just as useful whether it's using lambdas or the old syntax, so I suggest
we reconcile the grammar with DMD in this case.

--


More information about the Digitalmars-d-bugs mailing list