Click here to Skip to main content
15,112,198 members

Survey Results

Rate these 5 C# language improvements

Survey period: 30 Aug 2021 to 6 Sep 2021

For the C# devs. The language grows, so rate some of these additions from 1 = completely useless to 5 = Best thing since sliced bread.

OptionResponses Avg  
Implicit new: MyClass x = new()5233.05
Syntax patterns c is >= 'a' and <= 'z'5232.80
Switch: myVar switch { "value" => value, ... _ }5233.00
Null-coalescing assign: myList ??= new List<int>();5233.20
Indices and range: mystring[1..^4]5233.10



 
GeneralI'm looking forward to them... Pin
Gary R. Wheeler31-Aug-21 16:07
MemberGary R. Wheeler31-Aug-21 16:07 
GeneralThey're all useless to me. Pin
RafagaX31-Aug-21 7:48
professionalRafagaX31-Aug-21 7:48 
GeneralWhy do they even bother to use new. Just use MyClass x; and new it in GC internally Pin
steveb31-Aug-21 3:59
Membersteveb31-Aug-21 3:59 
GeneralRe: Why do they even bother to use new. Just use MyClass x; and new it in GC internally Pin
BillWoodruff5-Sep-21 14:58
mveBillWoodruff5-Sep-21 14:58 
Generalmost of them are useless Pin
Stepan Hakobyan30-Aug-21 21:26
professionalStepan Hakobyan30-Aug-21 21:26 
GeneralRe: most of them are useless Pin
hakimio30-Aug-21 22:11
Memberhakimio30-Aug-21 22:11 
GeneralMixed bag Pin
r_hyde30-Aug-21 21:01
Memberr_hyde30-Aug-21 21:01 
GeneralAre any of them even supported in .net 4.x? Pin
Dan Neely30-Aug-21 4:34
MemberDan Neely30-Aug-21 4:34 
I've basically stopped caring about new language features because not living in the Redmond reality distortion bubble I'm unlikely to ever do a rewrite of my current app from framework to core and MS has mostly decided to treat the former as a bugfix only platform.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius

GeneralRe: Are any of them even supported in .net 4.x? PinPopular
markrlondon30-Aug-21 4:52
Membermarkrlondon30-Aug-21 4:52 
GeneralRe: Are any of them even supported in .net 4.x? Pin
Richard Deeming30-Aug-21 22:53
mveRichard Deeming30-Aug-21 22:53 
GeneralRe: Are any of them even supported in .net 4.x? Pin
BillWoodruff5-Sep-21 15:01
mveBillWoodruff5-Sep-21 15:01 
GeneralRe: Are any of them even supported in .net 4.x? Pin
Matt McGuire31-Aug-21 5:29
professionalMatt McGuire31-Aug-21 5:29 
GeneralRe: Are any of them even supported in .net 4.x? Pin
Brisingr Aerowing31-Aug-21 11:07
professionalBrisingr Aerowing31-Aug-21 11:07 
GeneralMeh Pin
ronlease30-Aug-21 3:36
professionalronlease30-Aug-21 3:36 
GeneralMissing option Pin
Greg Utas30-Aug-21 3:03
mvaGreg Utas30-Aug-21 3:03 
GeneralMore like syntactic sugar ... Pin
Amarnath S30-Aug-21 2:02
professionalAmarnath S30-Aug-21 2:02 
GeneralNull-coalescing assign - maybe useful? Pin
Slacker00730-Aug-21 1:52
professionalSlacker00730-Aug-21 1:52 
GeneralRe: Null-coalescing assign - maybe useful? PinPopular
Sander Rossel30-Aug-21 3:24
professionalSander Rossel30-Aug-21 3:24 
GeneralRe: Null-coalescing assign - maybe useful? Pin
James Lonero31-Aug-21 13:51
MemberJames Lonero31-Aug-21 13:51 
GeneralThey're all just shortcuts... Pin
Sander Rossel29-Aug-21 23:05
professionalSander Rossel29-Aug-21 23:05 
PraiseRe: They're all just shortcuts... Pin
Christiaan van Bergen29-Aug-21 23:43
professionalChristiaan van Bergen29-Aug-21 23:43 
GeneralRe: They're all just shortcuts... Pin
Mladen Janković2-Sep-21 5:23
MemberMladen Janković2-Sep-21 5:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.