BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Updated Feature List for C# 6 and VB 12

| by Jonathan Allen Follow 125 Followers on Oct 03, 2014. Estimated reading time: 1 minute |

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 Stage
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.

Tell us what you think

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

Email me replies to any of my messages in this thread
Community comments

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

Email me replies to any of my messages in this thread

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

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT