2 ms·
> but can be used in functional ways. Every language can be used in functional ways, including Fortran, Cobol and assembly language. I think the main question
by beagle3 15y ago
> but can be used in functional ways.
Every language can be used in functional ways, including Fortran, Cobol and assembly language.
I think the main question is "what is idiomatic in that language?" and in that case, C#, even with LINQ, is still not functional (in the sense that Erlang, Haskell, OCaml and Scheme surely are, and Python sometimes is).
For example, when you use select in c# over a user-defined collection, the enumerator might modify global state. It would be bad practice, but it's not unheard of.
I wouldn't say c# is functional.