Lambda syntax, etc

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Feb 4 22:56:44 PST 2009


On Thu, Feb 5, 2009 at 1:20 AM, Nick Sabalausky <a at a.a> wrote:
> >
> > Oh, and last semicolon of a function should be optional :-)
> >
> >    { int x; int y :: return x+y }
> >
>
> Now there's a language war waiting to happen ;)

Psh!  All that has to happen grammatically is that instead of using a
raw semicolon to terminate statements, you have a StatementTerminator
nonterminal which goes to either semicolon or non-consuming right
brace.  It's trivial to implement in the compiler too.



More information about the Digitalmars-d mailing list