Click here to Skip to main content
15,887,135 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: Wordle 445 Pin
Cp-Coder7-Sep-22 2:20
Cp-Coder7-Sep-22 2:20 
GeneralRe: Wordle 445 (5/6) Pin
musefan7-Sep-22 2:41
musefan7-Sep-22 2:41 
GeneralI hate recent C# versions! Pin
Behzad Sedighzadeh6-Sep-22 0:21
Behzad Sedighzadeh6-Sep-22 0:21 
GeneralRe: I hate recent C# versions! PinPopular
Richard MacCutchan6-Sep-22 0:52
mveRichard MacCutchan6-Sep-22 0:52 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 1:13
harold aptroot6-Sep-22 1:13 
GeneralRe: I hate recent C# versions! PinPopular
den2k886-Sep-22 4:04
professionalden2k886-Sep-22 4:04 
GeneralRe: I hate recent C# versions! Pin
DRHuff6-Sep-22 5:13
DRHuff6-Sep-22 5:13 
GeneralRe: I hate recent C# versions! PinPopular
Richard Deeming6-Sep-22 1:18
mveRichard Deeming6-Sep-22 1:18 
Behzad Sedighzadeh wrote:
... recent addings to the language ...
I'm not convinced by your definition of "recent"! Laugh | :laugh:
Behzad Sedighzadeh wrote:
Named/optional arguments
Added in C# 4, which was released in April 2010.
Behzad Sedighzadeh wrote:
??
?[]
The null conditional / coalescing operators were added in C# 6 (July 2015).
Behzad Sedighzadeh wrote:
discards
C# 7 (March 2017)
Behzad Sedighzadeh wrote:
()
Not entirely sure what you're referring to here. I'm going to guess that you mean value tuples, which were also added in C# 7 (March 2017).
Behzad Sedighzadeh wrote:
Switch expressions
C# 8 (September 2019).

As with any addition to the language, nobody is forcing you to use them. If you want to stick to writing C# 1.0 code, then you're free to do so. It's only when you come to read someone else's code that you might need to understand the newer constructs - but even then, there are ways to convert the code to an older syntax.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


modified 7-Sep-22 3:26am.

GeneralRe: I hate recent C# versions! Pin
Kate-X2576-Sep-22 22:08
Kate-X2576-Sep-22 22:08 
GeneralRe: I hate recent C# versions! Pin
Mateusz Jakub6-Sep-22 23:47
Mateusz Jakub6-Sep-22 23:47 
GeneralRe: I hate recent C# versions! Pin
Chris Maunder7-Sep-22 3:14
cofounderChris Maunder7-Sep-22 3:14 
GeneralRe: I hate recent C# versions! Pin
Richard Deeming7-Sep-22 3:36
mveRichard Deeming7-Sep-22 3:36 
GeneralRe: I hate recent C# versions! Pin
Chris Maunder7-Sep-22 4:20
cofounderChris Maunder7-Sep-22 4:20 
GeneralRe: I hate recent C# versions! Pin
William Rummler7-Sep-22 5:40
William Rummler7-Sep-22 5:40 
GeneralRe: I hate recent C# versions! Pin
Philippe Verdy8-Sep-22 12:01
Philippe Verdy8-Sep-22 12:01 
GeneralRe: I hate recent C# versions! PinPopular
Kornfeld Eliyahu Peter6-Sep-22 1:26
professionalKornfeld Eliyahu Peter6-Sep-22 1:26 
GeneralRe: I hate recent C# versions! Pin
Gerry Schmitz6-Sep-22 5:47
mveGerry Schmitz6-Sep-22 5:47 
GeneralRe: I hate recent C# versions! PinPopular
BryanFazekas7-Sep-22 1:10
BryanFazekas7-Sep-22 1:10 
GeneralRe: I hate recent C# versions! PinPopular
OriginalGriff6-Sep-22 1:39
mveOriginalGriff6-Sep-22 1:39 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 4:54
mvePIEBALDconsult6-Sep-22 4:54 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:04
harold aptroot6-Sep-22 5:04 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 5:07
mvePIEBALDconsult6-Sep-22 5:07 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:10
harold aptroot6-Sep-22 5:10 
GeneralRe: I hate recent C# versions! Pin
PIEBALDconsult6-Sep-22 5:26
mvePIEBALDconsult6-Sep-22 5:26 
GeneralRe: I hate recent C# versions! Pin
harold aptroot6-Sep-22 5:38
harold aptroot6-Sep-22 5:38 

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.