DEV Community

Discussion on: .NET Looks at Functional Programming Techniques.

Collapse
 
thebuzzsaw profile image
Kelly Brown

Modern analyzers would propose you change those local delegate variables to local methods.

Collapse
 
jwp profile image
John Peters

True...

I did this example based on the only real functional constructs we have in C# which are 1) Func and 2)Extension methods. I've worked in shops where they were adverse to Extension Methods, thus the reason the title is as it is. Unfortunately for C# Func, despite what MSFT says are not 1st class citizens as they are in Typescript/JavaScript. Maybe this is the reason I've seen resistance to extension methods.

Collapse
 
thebuzzsaw profile image
Kelly Brown

Unfortunately for C# Func, despite what MSFT says are not 1st class citizens as they are in Typescript/JavaScript.

As noted in the other discussion thread, you have yet to defend this claim. The C# syntax simply isn't what you like, but they have all the same abilities.

Collapse
 
saint4eva profile image
saint4eva

A lot of developers use Linq, I believe.