4 ms·
LINQ is a query/update language for data structures. The beauty of it is that it can be used to read/update/modify vectors, lists, maps, etc. So, you just have
by rohshall 14y ago
LINQ is a query/update language for data structures. The beauty of it is that it can be used to read/update/modify vectors, lists, maps, etc. So, you just have one API to learn. And this API is easy to learn because it is modeled on SQL.
- rbanffy 14y ago> because it is modeled on SQL And that's the problem - you have a very Java-like syntax for the rest of C# with intrusions of SQL-like syntax. I'm not sure it's a good idea. A solution more like the comprehensions you find in functional languages would probably be neater and more flexible.
- rohshall 14y agoAdding a Haskell-like list comprehension (or Python-like) is not Java-ish anyway. You anyway need to add new syntax and since SQL is already known to most developers, I think it will be easy to learn for the most.