views:

226

answers:

8

What languages feature (1 per answer please) should be added to VB.NET in future versions?

Update: where possible provide links to examples of language feature as used elsewhere.

+7  A: 

A C#-style yield return statement. Lots of cool stuff is being done with custom IEnumerable iterators, and currently these are a pain to write in VB.NET...

mdb
Will hopefully be added in the next version.
Konrad Rudolph
A: 

The ability to terminate statements with a semicolon.

Micah
A: 

Surrond code blocks with curly braces { }

Micah
+2  A: 

Support for multiline lambda expressions.

Micah
Will be added in the next version.
Konrad Rudolph
A: 

Better IntelliSense for objects with events. When typing: "obj." the list of items should include the events without having to declare the object "with events" or having to do "addhandler".

Micah
Why? I like this context-sensitive IntelliSense much better: only show the events if this is relevant in the current context.
Konrad Rudolph
A: 

C# has LINQ, SQL syntax embedded in C#.

VB needs 'LINC', Language INtegrated COBOL syntax :-)

Okay, kidding. I'm sure this will get like -5 for red herring.

Aaron
A: 

Action<T> support. See this.

Mauricio Scheffer
A: 

Map, Reduce, and MapReduce on the IEnumberable interface. We already have the ability to run delegates for the most common operations on enumerables, why don't we have a more generic version?

Bryan Anderson