Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I hate recent C# versions! Pin
MikeCLX6-Sep-22 20:49
MikeCLX6-Sep-22 20:49 
GeneralRe: I hate recent C# versions! Pin
OriginalGriff6-Sep-22 6:11
mveOriginalGriff6-Sep-22 6:11 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 6:23
mvePIEBALDconsult6-Sep-22 6:23 
GeneralRe: I hate recent C# versions! Pin
OriginalGriff6-Sep-22 10:23
mveOriginalGriff6-Sep-22 10:23 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 10:45
mvePIEBALDconsult6-Sep-22 10:45 
GeneralRe: I hate recent C# versions! Pin
OriginalGriff6-Sep-22 11:26
mveOriginalGriff6-Sep-22 11:26 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 11:37
mvePIEBALDconsult6-Sep-22 11:37 
GeneralRe: I hate recent C# versions! Pin
lmoelleb6-Sep-22 2:11
lmoelleb6-Sep-22 2:11 
I really like ?? since they made it possible to throw.
C#
something = myParameter ?? throw new ArgumentNullException(...)

also handy in if statements.

Optional arguments: better than 100 overloads, but as with everything use with care.

(): If indeed value tuples - better than what we had (no more Item1, Item2)

?[]: Never used it, but I use ?. all the time -and it would be strange if ?[] wasn't available as well.

Discards: Handy when needed - do not use them a lot, but when you do they make it clear right away.

Switch expressions: Why oh why.... where they not added earlier. No more crappy switch statements full of returns or variable assignments - and a compiler warning when I am missing a state. I need to figure out how to use them nicely with enums though - I want a catch all that throws if not a defined enum value, but still want a warning if a new enum value is added and I do not handle it

And nullable in general is of course the best thing since sliced bre... no, wait - I can just eat the bread without slicing it! Just too bad it is a bit crippled as we still need to call legacy code and the required keyword isn't coming before next version.
GeneralRe: I hate recent C# versions! Pin
Nelek6-Sep-22 2:16
protectorNelek6-Sep-22 2:16 
GeneralRe: I hate recent C# versions! Pin
Marc Clifton6-Sep-22 2:57
mvaMarc Clifton6-Sep-22 2:57 
GeneralRe: I hate recent C# versions! Pin
Marc Clifton6-Sep-22 3:00
mvaMarc Clifton6-Sep-22 3:00 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 3:33
mvePIEBALDconsult6-Sep-22 3:33 
GeneralRe: I hate recent C# versions! Pin
Graeme_Grant6-Sep-22 21:32
mvaGraeme_Grant6-Sep-22 21:32 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult7-Sep-22 2:34
mvePIEBALDconsult7-Sep-22 2:34 
GeneralRe: I hate recent C# versions! Pin
Graeme_Grant7-Sep-22 3:08
mvaGraeme_Grant7-Sep-22 3:08 
GeneralRe: I hate recent C# versions! Pin
Sander Rossel6-Sep-22 3:38
professionalSander Rossel6-Sep-22 3:38 
GeneralRe: I hate recent C# versions! Pin
OriginalGriff6-Sep-22 4:38
mveOriginalGriff6-Sep-22 4:38 
GeneralRe: I hate recent C# versions! Pin
lmoelleb6-Sep-22 3:49
lmoelleb6-Sep-22 3:49 
GeneralRe: I hate recent C# versions! Pin
Eddy Vluggen6-Sep-22 4:24
professionalEddy Vluggen6-Sep-22 4:24 
GeneralRe: I hate recent C# versions! Pin
Sander Rossel6-Sep-22 4:49
professionalSander Rossel6-Sep-22 4:49 
GeneralRe: I hate recent C# versions! Pin
Eddy Vluggen6-Sep-22 5:07
professionalEddy Vluggen6-Sep-22 5:07 
GeneralRe: I hate recent C# versions! Pin
Eddy Vluggen6-Sep-22 9:26
professionalEddy Vluggen6-Sep-22 9:26 
GeneralRe: I hate recent C# versions! Pin
Marc Clifton6-Sep-22 5:30
mvaMarc Clifton6-Sep-22 5:30 
GeneralRe: I hate recent C# versions! Pin
Eddy Vluggen6-Sep-22 6:00
professionalEddy Vluggen6-Sep-22 6:00 
GeneralRe: I hate recent C# versions! Pin
Martin ISDN14-Sep-22 5:41
Martin ISDN14-Sep-22 5:41 

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.