Click here to Skip to main content
15,891,513 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: Unnoticeable yet awesome new C# feature Pin
Leo5622-Dec-21 20:56
Leo5622-Dec-21 20:56 
GeneralRe: Unnoticeable yet awesome new C# feature Pin
JohaViss6122-Dec-21 23:20
professionalJohaViss6122-Dec-21 23:20 
GeneralRe: Unnoticeable yet awesome new C# feature Pin
sasadler23-Dec-21 6:35
sasadler23-Dec-21 6:35 
GeneralRe: Unnoticeable yet awesome new C# feature Pin
Marc Clifton22-Dec-21 10:37
mvaMarc Clifton22-Dec-21 10:37 
GeneralRe: Unnoticeable yet awesome new C# feature Pin
James Lonero28-Dec-21 13:33
James Lonero28-Dec-21 13:33 
GeneralRe: Unnoticeable yet awesome new C# feature Pin
Michael Rockwell 202123-Dec-21 3:48
Michael Rockwell 202123-Dec-21 3:48 
GeneralRe: Unnoticeable yet awesome new C# feature Pin
Dan Sutton23-Dec-21 5:36
Dan Sutton23-Dec-21 5:36 
GeneralRe: Unnoticeable yet awesome new C# feature Pin
englebart23-Dec-21 5:50
professionalenglebart23-Dec-21 5:50 
Good call out.

This is a way to future proof against someone adding a messed up operator later.

The ironic thing is that if someone wrote incorrect overrides for “==“ or “!=“ where they neglected null, then the likely outcome would be a null pointer exception from the operator itself.

Legacy code, before someone introduces a bad operator!=

if (obj != null) obj.f();

Avoids future introduction of bad operator.

if (obj is not null) obj.f();

GeneralRe: Unnoticeable yet awesome new C# feature Pin
jschell23-Dec-21 6:32
jschell23-Dec-21 6:32 
GeneralRe: Unnoticeable yet awesome new C# feature Pin
Member 91670579-Jan-22 23:26
Member 91670579-Jan-22 23:26 
GeneralCPU woes Pin
honey the codewitch22-Dec-21 4:57
mvahoney the codewitch22-Dec-21 4:57 
GeneralRe: CPU woes Pin
0x01AA22-Dec-21 5:11
mve0x01AA22-Dec-21 5:11 
GeneralRe: CPU woes Pin
honey the codewitch22-Dec-21 5:38
mvahoney the codewitch22-Dec-21 5:38 
GeneralRe: CPU woes Pin
0x01AA22-Dec-21 5:46
mve0x01AA22-Dec-21 5:46 
GeneralRe: CPU woes Pin
honey the codewitch22-Dec-21 20:45
mvahoney the codewitch22-Dec-21 20:45 
GeneralRe: CPU woes Pin
Peter Adam22-Dec-21 20:35
professionalPeter Adam22-Dec-21 20:35 
GeneralRe: CPU woes Pin
honey the codewitch22-Dec-21 20:41
mvahoney the codewitch22-Dec-21 20:41 
GeneralRe: CPU woes Pin
RickZeeland22-Dec-21 5:12
mveRickZeeland22-Dec-21 5:12 
GeneralRe: CPU woes Pin
honey the codewitch22-Dec-21 5:37
mvahoney the codewitch22-Dec-21 5:37 
GeneralRe: CPU woes Pin
Randor 22-Dec-21 6:06
professional Randor 22-Dec-21 6:06 
GeneralRe: CPU woes Pin
k505422-Dec-21 6:37
mvek505422-Dec-21 6:37 
GeneralRe: CPU woes Pin
Jacquers22-Dec-21 19:09
Jacquers22-Dec-21 19:09 
GeneralRe: CPU woes Pin
honey the codewitch22-Dec-21 19:13
mvahoney the codewitch22-Dec-21 19:13 
GeneralRe: CPU woes Pin
wapiti6423-Dec-21 3:12
wapiti6423-Dec-21 3:12 
GeneralRe: CPU woes Pin
honey the codewitch23-Dec-21 3:15
mvahoney the codewitch23-Dec-21 3:15 

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.