
13 Apr
2006
13 Apr
'06
9:46 p.m.
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. B.