Is there any Linq like feature in any languages prior to .NET?
I was wondering开发者_C百科, if there are examples of Linq like features in other languages and programming platforms prior to .NET or this was the invention of Microsoft.
Many of the ideas behind LINQ are borrowed from functional programming languages, although Microsoft is the first that I'm aware of that has packaged up these ideas into an in-language query language that resembles SQL, and in fact can be translated to SQL at runtime.
The underlying concepts, though, are nearly as old as computers, in many cases.
See wiki
While LINQ is primarily implemented as a library for .NET Framework 3.5, it also defines a set of language extensions that can be optionally implemented by languages to make queries a first class language construct and provide syntactic sugar for writing queries. These language extensions have initially been implemented in C# 3.0, VB 9.0 and Oxygene, with other languages like F# and Nemerle having announced preliminary support.
精彩评论