Linked by Eugenia Loli-Queru on Wed 21st Sep 2005 05:45 UTC
.NET (dotGNU too) Microsoft just released some more information and videos on VB 9.0 and C# 3.0.
Thread beginning with comment 34427
To read all comments associated with this story, please click here.
C# 3.0 looking like Boo
by ckknight on Wed 21st Sep 2005 09:11 UTC
ckknight
Member since:
2005-07-06

C# 3.0 seems to be taking a lot of features from Boo. (which is a good thing)

Type inference:
C# 3.0: var i = 5;
Boo: i = 5

Lambda expressions:
C# 3.0: x => X + 1
Boo: { x as int | return x + 1 }

Object initializers:
C# 3.0: var a = new Point { X = 0, Y = 1 }
Boo: a = Point(X: 0, Y: 1)

Query expressions:
C# 3.0: from c in customers where c.City == "London" select c
Boo: c for c in customers if c.City == "London"

There are a few proposed others that will be put in Boo in a little while. (but probably before C# 2.0 comes out of beta)

If you want to at least check out these nice features today, while having a prettier syntax, take a look at Boo.

http://boo.codehaus.org/

irc://irc.codehaus.org/#boo