Click here to Skip to main content
14,659,429 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: Wooo! I did it Pin
David O'Neil2-Jul-20 9:10
professionalDavid O'Neil2-Jul-20 9:10 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:38
mvahoney the codewitch2-Jul-20 9:38 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 9:12
professionalDavid O'Neil2-Jul-20 9:12 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:36
mvahoney the codewitch2-Jul-20 9:36 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 10:10
professionalDavid O'Neil2-Jul-20 10:10 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 12:25
mvahoney the codewitch2-Jul-20 12:25 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 13:03
professionalDavid O'Neil2-Jul-20 13:03 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 13:18
mvahoney the codewitch2-Jul-20 13:18 
Oh I see what you mean. My experience with C# is that the compiler does very little optimization, even in release builds. Either way, the cast isn't necessary, and IMO doesn't add more clarity than a const would. And frankly, I don't think the zero is bad either, but maybe that's just from decades of treating 0 and false as functionally equivalent as it is in the C world.
Real programmers use butterflies

GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:10
mvahoney the codewitch2-Jul-20 9:10 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 9:15
professionalDavid O'Neil2-Jul-20 9:15 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:33
mvahoney the codewitch2-Jul-20 9:33 
GeneralRe: Wooo! I did it Pin
David O'Neil2-Jul-20 10:12
professionalDavid O'Neil2-Jul-20 10:12 
GeneralRe: Wooo! I did it Pin
Greg Utas2-Jul-20 0:25
professionalGreg Utas2-Jul-20 0:25 
GeneralRe: Wooo! I did it Pin
honey the codewitch2-Jul-20 9:11
mvahoney the codewitch2-Jul-20 9:11 
GeneralI was sent this, and... PinPopular
OriginalGriff1-Jul-20 8:21
mveOriginalGriff1-Jul-20 8:21 
GeneralRe: I was sent this, and... Pin
Mike Hankey1-Jul-20 8:23
professionalMike Hankey1-Jul-20 8:23 
GeneralRe: I was sent this, and... Pin
Kris Lantz1-Jul-20 8:29
professionalKris Lantz1-Jul-20 8:29 
GeneralRe: I was sent this, and... Pin
Greg Utas1-Jul-20 8:45
professionalGreg Utas1-Jul-20 8:45 
GeneralRe: I was sent this, and... Pin
RedDk1-Jul-20 9:36
MemberRedDk1-Jul-20 9:36 
GeneralThought of the Day Pin
OriginalGriff1-Jul-20 4:37
mveOriginalGriff1-Jul-20 4:37 
GeneralRe: Thought of the Day Pin
W Balboos, GHB1-Jul-20 5:13
mveW Balboos, GHB1-Jul-20 5:13 
GeneralRe: Thought of the Day Pin
jeron11-Jul-20 5:13
Memberjeron11-Jul-20 5:13 
GeneralRe: Thought of the Day Pin
Slacker0071-Jul-20 5:13
professionalSlacker0071-Jul-20 5:13 
GeneralRe: Thought of the Day Pin
DerekT-P1-Jul-20 6:01
professionalDerekT-P1-Jul-20 6:01 
GeneralRe: Thought of the Day Pin
Gary R. Wheeler1-Jul-20 7:54
MemberGary R. Wheeler1-Jul-20 7:54 

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.