Re:How currying leads to elegant, readable code
by CrossEye on Friday June 20, 2014 @12:03PM
(#7921283)
I'm not really a C# person, but from what I know of the language, although it has some lambdas and some other functional features especially around LINQ, functional programming really is against the grain of the language, and would not be easy to integrate into the same code.
The .NET platform of course has F#, which is a dedicated functional language. Some day I'll spend some time learning this one... perhaps.
As Currying and functional programming a popular thing now, I was thinking what my current codebase would look like in C# if I were writing code in a more functional way.
So, obviously C# isn't a functional languageat all but using Func<T>, and maybe some delegates would enable this easily.
I'm not sure this would turn my code to more elegant or readable.
What would I benefit from ?