Lambda syntax, etc

Kagamin spam at here.lot
Tue Feb 10 08:17:40 PST 2009


Kagamin Wrote:

> > > auto r = find(range, {a -> a.Weight <- 100});
> > 
> > Take a look at how the Fortress language manages spaces inside expressions. It can find a syntax error there, because the spacing is misleading.
> 
> There is no error here, since there's no <- operator, the construct is unabiguous, it just looks weird.

well, every construct can look weird in some environment.



More information about the Digitalmars-d mailing list