|
Boost : |
From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2006-04-13 16:16:57
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk