4 ms·
How do you do functional programming in C#? It has lambda functions, but it lacks sum types, pattern matching and immutable collections (they exist, but it's no
by continuational 10y ago
How do you do functional programming in C#? It has lambda functions, but it lacks sum types, pattern matching and immutable collections (they exist, but it's not much use if none of the libraries use them).
- kwhitefoot 10y agoNone of these things are essential for functional programming in the sense of pure functions free of side effects.
- continuational 10y agoIn that sense, no programming language feature is essential; you can do pure functions in assembler.