Neal Gafter neal at
Wed Jul 7 13:12:31 PDT 2010

On Wed, Jul 7, 2010 at 12:59 PM, Pavel Minaev <int19h at> wrote:

> On Wed, Jul 7, 2010 at 12:47 PM, Neal Gafter <neal at> wrote:
> > My experience is exactly the opposite.  In C# "this" is inherited from
> the
> > enclosing scope.  No members are inherited from the delegate object type
> > into the body of the lambda expression.
> This doesn't mean that C# programmers don't think of lambdas as
> methods. It means that they think of them as methods on the class, in
> the body of which the lambda is written (rather than a delegate type)
> - but a method nonetheless. Consequently, they expect "return" to work
> in the body of the lambda in the same manner as in any other method.

Even if I accept this logic, this is quite different from what is proposed
for project lambda.

More information about the lambda-dev mailing list