New in C# 10: Easier Lambda Expressions
dontcodetired.com
New in C# 10: Easier Lambda Expressions
1–10 of 111 posts
Re: New in C# 10: Easier Lambda Expressions
#2I do wonder what was limiting them before
Re: New in C# 10: Easier Lambda Expressions
#3Re: New in C# 10: Easier Lambda Expressions
#4Re: New in C# 10: Easier Lambda Expressions
#5There's something clearly wrong with the code samples: look at the "closing tags" which somehow sneaked in in line 17 of the first sample
Re: New in C# 10: Easier Lambda Expressions
#6There's something clearly wrong with the code samples: look at the "closing tags" which somehow sneaked in in line 17 of the first sample
Re: New in C# 10: Easier Lambda Expressions
#7Nice, I like it. I do wonder what was limiting them before
Heck, I'd say, by now with local functions most lambdas that previously would have been a local could now just be a local function.
Re: New in C# 10: Easier Lambda Expressions
#8https://docs.microsoft.com/en-us/dotnet/csharp/language-refe...
Lambdas can also have attributes now, too.
Re: New in C# 10: Easier Lambda Expressions
#9Nice, I like it. I do wonder what was limiting them before
Re: New in C# 10: Easier Lambda Expressions
#10F# is really, really bleeding into C#. There'll be a convergence, for all intents and purposes, by about C# 15 at this rate.
The F# style is enabled by a set of features - some of which would be really hard to add to C# (such as currying and global type inference) - but even if they were added, the millions(?) of C# developers would be unlikely adopt the functional style just because it was possible. A language is not just a list of features; each language has its own culture and "idiomatic" way of doing things.