This is a question about LINQ the .NET language feature, not LINQ to SQL.
I find that the ability to query almost any in memory collection in such a consistent and declarative way is one of the best language features I’ve ever come across.
I find it extremely useful, and I love the clean abstraction it provides. LINQ can even be used to query Strings, indeed its extremely flexible.
My questions are:
- Is this idea of “Language Integrated Queries” new? and if not, what other languages implement a similar feature
- How do other implementations compare to Microsoft’s?
- This is a little subjective, but how important do others feel LINQ, as an idea, is?
cheers
The idea of language integerated query is not new, the way MS puts it is unique and new.
It is affected by Haskell and SQL syntax, Haskell had the idea of enumerators and lazy evaluation which is the core underline principle in implementing LINQ, in fact LINQ is just a syntactic sugar.
I feel link is a great bridge between reasoning about your programs and data in an abstract and clean way.