VB.NET Future

Learn about the future of VB.NET!

http://code.msdn.microsoft.com/vbfuture

Here is some of what is new:

* sub lambdas, and multiline sub/function lambdas

* sub lambdas, and multiline sub/function lambdas

* AsParallel. (well, this was a plinq feature rather than a VB feature, but cool as heck)

* DLR interop: invoke DLR methods from VB; create dynamic objects from VB; pass .net objects to DLR code; pass DLR objects to VB code. Note: unfortunately, this feature wasn’t ready in time for inclusion in the CTP.

* array literals, including inference of array structure (e.g. {{1,0},{0,1}} and {({1,2,3,4}),({1,2})}

* collection initializers: “dim x as new dictionary(of string,integer) from {{“hello”,1},{“world”,2}}

* auto-implemented properties, including initializers for them

* generic co- and contra-variance. Note: the VB support for co- and contra-variance was in the CTP. Unfortunately the covariant version IEnumerable(Of Out T) wasn’t ready in time for inclusion in the CTP, nor any of the other BCL classes. Also the CTP has a crummy bug that’s my fault which crashes when you use variance as part of overload resolution.

* line continuations (also http://www.unemployedunderscores.com!)

* No-PIA

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s