Saturday, September 17, 2005

Linq

Holy cow!!! These guys are onto something killer with LINQ...check this out:

"The use of connections and SQL command execution is essentially driven by the deferred execution (or lazy eval for the functional language folks) in LINQ."

http://blogs.msdn.com/dinesh.kulkarni/archive/2005/09/16/469340.aspx

And here's some more:

var q =
from c in customers
where c.City == "Seattle"
select new { c.Name, c.Age };
foreach (var c in q) {
Console.WriteLine(c.Name);
}

http://blogs.msdn.com/cyrusn/archive/2005/09/16/469953.aspx

Check out the usage of Anonymous Types!

This is awesome! Notice how C# 3.0 is really starting to bridge the gap between it and Lisp. This is a great time to be a programmer!