Using : for Lambda Syntax [was # considered harmful [was C++11 lambdas]]

Paul Benedict pbenedict at apache.org
Tue Mar 16 18:06:55 PDT 2010


Given a method using the "simple" syntax, wouldn't the ambiguity
complained about disappear by making .invoke() mandatory? I still am a
believer that function types should be treated like an object. It's
almost akin to strongly-typed reflection.

void somemethod(int(int) a) {
  a.invoke(2);
}


More information about the lambda-dev mailing list