15

What is the proper way to suggest features to be added to the C# language?

For example, I would like to have an operator similar to ?? but for selecting the min or max values.

I'd like a <? b to expand to a < b ? a : b likewise for >?

  • 1
    Contact the team responsible for the language at Microsoft. – Bernard Jan 27 '12 at 20:52
  • 13
    Is there something wrong with using the Min or Max functions? – Zach L Jan 27 '12 at 20:53
  • 5
    Good luck getting this feature added... – ChaosPandion Jan 27 '12 at 20:54
  • 2
    While I didn't intend this question to be about the relevance of this specific feature request. I like it because it could support any class that overloads < instead of the limited selection of overloads for the Math.Min and Math.Max functions. Also it is cleaner for 3 or more. Math.Min(a, Math.Min(b, c)) vs a <? b <? c. – Josh Jan 27 '12 at 21:05
  • 6
    By the way F# can easily supports this feature: let inline (<?) (a:^t) (b:^t) = if a < b then a else b – ChaosPandion Jan 27 '12 at 21:19
18

Microsoft Connect is the central Hub regarding all suggestions about Microsoft products.

Concerning Visual Studio and the .NET ecosystem, you will have to go through the "Visual Studio and .Net Framework" product and you will end up on the Visual Studio User Voice website where ideas can be submitted. You can also find discussions and issues on GitHub, for the open-sourced version of .NET.

There is also a new Q/A site for both Visual Studio and TFS.

Concerning C#, now that roslyn is open-source, the evolution of C# is discussed in the open, and is still designed by the C# Language Design Team (LDT). You can request and discuss new features of C# on GitHub.

  • Roslyn is open-source. But the C# language specification it adheres to is not open source. It is designed by committee. – ArTs Mar 17 '17 at 2:17
  • @ArTs adjusted the answer with info, and better formulation. – Matthieu Mar 17 '17 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.