www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13553] New: allow to omit parenthesis for nullary lambdas

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

          Issue ID: 13553
           Summary: allow to omit parenthesis for nullary lambdas
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

Requiring empty parenthesis for lambda expressions without arguments is
superfluous syntax.

onEvent(() => doSomething());
onEvent(=> doSomething());

--
Sep 28 2014