integerated query in java like linq
I wonder why the java community is acting oblivious about the new features in C#3 and VP9 namely what is called linq
I guess what linq introduced of the intergerated query into the language will make up the new gerneration of programming language which will make java a whole generation behind.
we write code and loop to do very often stuff like sorting array of objects based on field like sorting studens by grade
or combining two collections or two arrays in one. Or delete some objects from a collection that comply to some constraint.
If you say those operation are not that common then believe me you did not program much
if you say that SQL is not experssive language and not that appropriate for those cases then believe me you are just fool and dont know what you are talking about
see the following examples from linq
IEnumerable expr = from s in names
where s.Length == 5
or imagine writting things like
int  newArr = select * from arr1 union arr2
Student st= select s from Student where s.getGrade()=='A' orderBy s.getGPA() DESC.
Every one who used SQL heavily before can understand the potential it can bring to programming language. Plus obtimizers can be written to make this code faster than the original loop. For example a standard fast sort can be used instead of making the user implementing his own. Or better join techniques.
please if you are not sure your mind is big enough to understand the importance of this dont bother to participate in this topic because I started to believe some people around here are just to keep java backward and anti any new thing.