BT

InfoQ Homepage News Updated Feature List for C# 6 and VB 12

Updated Feature List for C# 6 and VB 12

Bookmarks

As the next version of C# gets closer, features that are not quite ready have to be cut. The features. Newly removed from the list are primary constructors and declaration expressions. Mads Torgersen writes,

As you’ve maybe heard me say before, language features are a secondary consideration in this release. The primary goal is to deliver a magnificent first release of the Roslyn value proposition: deep language understanding in the IDE and available to everyone through a robust and comprehensive API. To deliver this well, we need to scale back our appetite for language features a bit.

It’s not all bad news. A feature not previously discussed by Microsoft, string interpolation, is expected to make it in. String interpolation allows one to inline variables in strings without the need to explicitly call String.Format. String interpolation was added to the Mono compiler back in 2009 as an experimental feature.

Features that are expected to be included in the next version include:

  • Auto-property initializers (Already available in VB)
  • Getter-only auto-properties
  • Ctor assignment to getter-only autoprops
  • Parameterless struct ctors
  • Using static members (Already available in VB)
  • Dictionary initializer (C# only)
  • Await in catch/finally (C# done. VB maybe)
  • Exception filters (Already available in VB)
  • Typecase (VB maybe)
  • Partial modules (VB only, not applicable to C#)
  • Partial interfaces (Already available in C#)
  • Multiline string literals (Already available in C#)
  • Year-first date literals (VB only)
  • Line continuation comments (VB only, not applicable to C#)
  • TypeOf IsNot (VB only, not applicable to C#)
  • Expression-bodied members (C# only)
  • Null propagation (C# done, VB maybe)
  • Params IEnumerable (maybe)
  • String interpolation (planned)
  • nameof operator (C# done, VB planned)
  • #pragma (Already available in C#)
  • Field targets on autoprops (maybe)

You can see the list of features that didn’t make the cut on the language features status page.

Note: A previous report in InfoQ erroneously stated that pattern matching would be part of C# 6 and VB 12.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.