The tag has no usage guidance.

learn more… | top users | synonyms

21
votes
4answers
13k views

Why doesn't Python allow multi-line lambdas?

Can someone explain the concrete reasons why BDFL choose to make Python lambdas single line? This is good: lambda x: x**x This results in an error: lambda x: x**x I understand that making ...
4
votes
2answers
5k views

What is the necessity to go for lambda functions and expressions in C++? [closed]

What is the necessity to use lambda functions and expressions in C++? Can you explain or show through examples how to use lambda functions and expressions? I already gone through the related Wikipedia ...
2
votes
5answers
354 views

Delegate vs Method

Is there any advantige using delegates instead of methods? For example: public void LoginAuthenticate(object sender, AuthenticateEventArgs e) { if (Membership.ValidateUser(lgUserLogin.UserName, ...
3
votes
4answers
706 views

Using lambdas to improve encapsulation

Just as many people believe tenaciously in small functions, some people believe lambdas should only contain small code fragments. An often overlooked advantage of lambdas however, is using them you ...
3
votes
2answers
443 views

Is Lambda function same as Actor? How can it be explained?

Sometime back I read (from a book) that conceptually Lambda function is similar to Actor. However I am clear on the concept, and will appreciate any insight or explanations for this. If they are ...
4
votes
4answers
2k views

Delphi doesn't have Lambda Expressions and I'm a Delphi programmer, what am I missing out on?

I'm nearly clueless as to what a lambda expression is, but I have a hard time believing that I couldn't finagle something to the same effect in Delphi (albeit with 900% more code). What is the big ...
46
votes
3answers
13k views

Can somebody explain me what are lambda things in programming? [closed]

So far I heard about : Lambda calculus Lambda programming Lambda expressions Lambda functions Which all seems to be related to functional programming... Apparently it will be integrated into C++...
36
votes
10answers
12k views

Does the usage of LINQ and Lambda Expressions lead to less readable code? [closed]

I'm having a discussion with a co-worker on Linq, I'll copy here: Co-Worker: Lets be honest here. Linq syntax sucks. It's confusing and non-intuitive. Me: oh come on, more confusing ...