4 ms·
That's why I think C# is did the industry a great service by introducing LINQ. It really drove a movement to adopting some functional-style idioms in lots of la
by naasking 3y ago
That's why I think C# is did the industry a great service by introducing LINQ. It really drove a movement to adopting some functional-style idioms in lots of languages, even Java in the end with it's stream API. It at least got functional programming's foot in the door among industry standard OOP languages. Still a long way to go though.
- bunderbunder 3y agoThough, Java's stream API is not suitable for use with typical functional programming idioms the way that LINQ is. In my opinion, no code that touches it should be considered functional. That's a big part of why Scala and Kotlin code tends to avoid it.
- pjmlp 3y agoWas actually driven by VB.NET initially, and Erik Meyer's contribution. https://dl.acm.org/doi/abs/10.1145/1297105.1297078 https://dl.acm.org/doi/abs/10.1145/1297105.1297078 Ironically LINQ is something that was already present in Smalltalk collections, yet kind of lost in OOP languages until closures came to be.