Click here to Skip to main content
15,881,875 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: .Net 5 Freakin Annoying Pin
J. Frank Reeves16-Feb-22 1:51
J. Frank Reeves16-Feb-22 1:51 
GeneralRe: .Net 5 Freakin Annoying Pin
Steve Naidamast16-Feb-22 4:07
professionalSteve Naidamast16-Feb-22 4:07 
GeneralRe: .Net 5 Freakin Annoying Pin
#realJSOP16-Feb-22 23:50
mve#realJSOP16-Feb-22 23:50 
GeneralRe: .Net 5 Freakin Annoying Pin
Steve Naidamast17-Feb-22 3:43
professionalSteve Naidamast17-Feb-22 3:43 
GeneralRe: .Net 5 Freakin Annoying Pin
Daniel Pfeffer14-Feb-22 23:49
professionalDaniel Pfeffer14-Feb-22 23:49 
GeneralRe: .Net 5 Freakin Annoying Pin
Lorenzo Bertolino15-Feb-22 20:36
professionalLorenzo Bertolino15-Feb-22 20:36 
GeneralRe: .Net 5 Freakin Annoying Pin
Peter Adam15-Feb-22 22:10
professionalPeter Adam15-Feb-22 22:10 
GeneralRe: .Net 5 Freakin Annoying Pin
Member 916705715-Feb-22 20:53
Member 916705715-Feb-22 20:53 
Disable explicit nullability, problem solved.
If explicit nullability is your problem in the first place. If you don't know whether an object you just got passed to your function can be null, you have to program more defensively, than if you know it'll never be null (in that case, it'd get caught by the runtime if you declare this parameter as explicitly-not-null).

Explicit nullability is one of those correctness features which you may just as well dread if you're not used to having a compiler look at your work, but is rather helpful once you learn to let the compiler do your job.

If an object can, in fact, be null, then declare it as nullable. I got a plethora of both Object and Object? members in my current work project, those that can be null during error-free operation, are declared Object?, those that can't, are declared without the ? as I want the runtime to throw an error in an error case.
GeneralRe: .Net 5 Freakin Annoying Pin
#realJSOP15-Feb-22 23:20
mve#realJSOP15-Feb-22 23:20 
GeneralRe: .Net 5 Freakin Annoying Pin
Member 916705716-Feb-22 0:02
Member 916705716-Feb-22 0:02 
GeneralRe: .Net 5 Freakin Annoying Pin
maze315-Feb-22 23:47
professionalmaze315-Feb-22 23:47 
GeneralRe: .Net 5 Freakin Annoying Pin
Davyd McColl16-Feb-22 3:24
Davyd McColl16-Feb-22 3:24 
GeneralRe: .Net 5 Freakin Annoying Pin
#realJSOP16-Feb-22 23:41
mve#realJSOP16-Feb-22 23:41 
GeneralRe: .Net 5 Freakin Annoying Pin
zezba900016-Feb-22 9:45
zezba900016-Feb-22 9:45 
GeneralRe: .Net 5 Freakin Annoying Pin
#realJSOP16-Feb-22 23:38
mve#realJSOP16-Feb-22 23:38 
GeneralRe: .Net 5 Freakin Annoying Pin
zezba900017-Feb-22 7:54
zezba900017-Feb-22 7:54 
QuestionDo you think it is possible for exoplanetary colonization?... Pin
oofalladeez34314-Feb-22 5:26
professionaloofalladeez34314-Feb-22 5:26 
AnswerRe: Do you think it is possible for exoplanetary colonization?... Pin
Sander Rossel14-Feb-22 5:29
professionalSander Rossel14-Feb-22 5:29 
JokeRe: Do you think it is possible for exoplanetary colonization?... Pin
Daniel Pfeffer14-Feb-22 5:50
professionalDaniel Pfeffer14-Feb-22 5:50 
GeneralRe: Do you think it is possible for exoplanetary colonization?... Pin
englebart14-Feb-22 14:57
professionalenglebart14-Feb-22 14:57 
AnswerRe: Do you think it is possible for exoplanetary colonization?... Pin
TNCaver14-Feb-22 5:30
TNCaver14-Feb-22 5:30 
GeneralRe: Do you think it is possible for exoplanetary colonization?... Pin
oofalladeez34314-Feb-22 6:03
professionaloofalladeez34314-Feb-22 6:03 
AnswerRe: Do you think it is possible for exoplanetary colonization?... Pin
PIEBALDconsult14-Feb-22 5:35
mvePIEBALDconsult14-Feb-22 5:35 
GeneralRe: Do you think it is possible for exoplanetary colonization?... Pin
oofalladeez34314-Feb-22 5:49
professionaloofalladeez34314-Feb-22 5:49 
AnswerRe: Do you think it is possible for exoplanetary colonization?... Pin
fgs196314-Feb-22 5:42
fgs196314-Feb-22 5:42 

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.