refined sugar (was DMD 0.165 release)

Sai leo303161 at yahoo.com
Wed Aug 23 09:40:06 PDT 2006


Oskar Linde wrote:
> Ideally, a syntax should also support declaring single expression 
> delegates with arguments.
> 
> (int a){a+1}
> (int a) => a+1
> 
> And in the future, possibly type inferred:
> (a){a+1}
> a => a+1
> 
> (a,b){a+b}
> a,b => a+b
> 
> /Oskar

This looks like syntax from Maple, which I use all the time in Maple.
cool.

http://www.bl.physik.tu-muenchen.de/rechner/maple/program/subsection3_4_3.html

Sai



More information about the Digitalmars-d-announce mailing list