DEV Community

Discussion on: OOP a software development mass psychosis

 
t4rzsan profile image
Jakob Christensen

LINQ is great and it is in fact a functional paradigm. The same goes for the fairly new C# record types and switch statements. C# has been adding more and more functional capabilities.

LINQ is a great example of what @polterguy means when he says that programming is about input -> verb -> output.

The LINQ function SelectMany is usually called flatMap or collect in the FP world and it is a part of the defition of monads. So collections in C# can behave in a "monad-ish" way in C# with the addition of LINQ.

Thread Thread
 
polterguy profile image
Thomas Hansen AINIRO.IO

And we didn't even mention Action and Func yet ... ;)