Hacker News new | ask | show | jobs
by liricooli 4380 days ago
I have no experience neither with JS nor with functional programming, but know Lambda calculus and currying from Discrete math courses.

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 ?

1 comments

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.