From: http://forum.dlang.org/post/hrjpqrzfcdyghcxbiiwt@forum.dlang.org Today, compiler accepts following lambda code, but the syntax is not followed by language specification. void main() { auto fp = function (int a) => a; auto dg = delegate (int a) => a; }
https://github.com/D-Programming-Language/dlang.org/pull/351
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/f7e72cc9885eaab905810ef5afc448c5bf197292 fix Issue 10605 - Lambda grammar is not sufficient Improve Lambda grammar and describe rewrite rule https://github.com/D-Programming-Language/dlang.org/commit/c73a1f5cdd283a9bc741d8883defee9901c1234d Merge pull request #351 from 9rnsr/fix_lambda Issue 10605 - Lambda grammar is not sufficient