
13 Apr
2006
13 Apr
'06
8:16 p.m.
Bronek Kozicki wrote:
David Abrahams wrote:
be templated. I think the syntax should be
auto(x){ x->first < 0 } where is "return" ? Good observation. Nowhere. Have you got a problem with that? Also no semicolon.
it's not function body, then. It's an expression. C'mon, I do not think that this could be honestly called "lambda".
It could be an expression or a statement-list, why couldn't it be called lambda? I would say most lambda expressions would be simple expressions, in which "return" is just unnecessary clutter. If they are too complicated they should be moved out to a named function anyway, IMO.. -- Daniel Wallin