Boost logo

Boost :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2006-04-13 17:46:06

David Abrahams wrote:
>>>>> 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".
> C'mon, haven't you ever heard of something called a "lambda expression?"

I have not seen one in C++, yet ;)

> Adding "return" for the majority of simple lambda expressions
> would result in a 25-30% increase in total non-whitespace characters,
> which is a big lose.

I understand, but it would be nice to 1. look at all use cases where lamba is
wanted and useful and 2. avoid confusing syntax.


Boost list run by bdawes at, gregod at, cpdaniel at, john at