News for hackers. Stuff that matters.
Re:LINQ is better than foreach by kodefuguru on Tuesday May 11, 2010 @11:24AM (#1338146)
IQueryable's get converted to expression trees which then get converted to sql. It's more of a "translated" to sql rather than a "compiled" to sql. The power of IQueryable is that the expression trees can be converted to so many different kinds of expressions, and you can write your own.

IEnumerable's extensions are mostly iterators over sequences.

Re:LINQ is better than foreach by btilly on Tuesday May 11, 2010 @12:04PM (#1338318)
IQueryable's get converted to expression trees which then get converted to sql. It's more of a "translated" to sql rather than a "compiled" to sql.

You've just described how compilers work, minus optional attempts at optimization and optional excess passes. Most of which take place either after the expression tree has been generated, or somewhere during the conversion process. Therefore I'd call what you've described "compilation".

Re:LINQ is better than foreach by crc32 on Tuesday May 11, 2010 @11:58AM (#1338288)
Compilation is translation.