Click here to Skip to main content
11,711,537 members (83,938 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Does this language feature seem strange to anyone else? Pin
Mike Winiberg21-Mar-13 22:14
memberMike Winiberg21-Mar-13 22:14 
GeneralRe: Does this language feature seem strange to anyone else? Pin
AspDotNetDev20-Mar-13 13:56
protectorAspDotNetDev20-Mar-13 13:56 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0020-Mar-13 14:06
memberlewax0020-Mar-13 14:06 
GeneralRe: Does this language feature seem strange to anyone else? Pin
AspDotNetDev20-Mar-13 14:09
protectorAspDotNetDev20-Mar-13 14:09 
GeneralRe: Does this language feature seem strange to anyone else? Pin
jschell21-Mar-13 10:04
memberjschell21-Mar-13 10:04 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0021-Mar-13 10:27
memberlewax0021-Mar-13 10:27 
GeneralRe: Does this language feature seem strange to anyone else? Pin
César de Souza22-Mar-13 0:43
memberCésar de Souza22-Mar-13 0:43 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0022-Mar-13 10:58
memberlewax0022-Mar-13 10:58 
But that only applies to enums with [Flags], and I always add a None to those (if only to make it easier to check if there are no flags set). In non-flags cases, None doesn't always make sense (e.g. you use enums to look up settings in order to make them both easily readable and limited in value, plus easily convertible to integers for binary storage or strings for human readable storage, but a "None" setting doesn't really make sense, what it the current value of "None"?) I guess in those cases you could just throw an exception, but part of the point of using an enum is that you shouldn't be able to receive invalid values.
GeneralRe: Does this language feature seem strange to anyone else? Pin
englebart22-Mar-13 2:26
memberenglebart22-Mar-13 2:26 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0022-Mar-13 10:41
memberlewax0022-Mar-13 10:41 
GeneralRe: Does this language feature seem strange to anyone else? Pin
RafagaX22-Mar-13 6:40
memberRafagaX22-Mar-13 6:40 
GeneralRe: Does this language feature seem strange to anyone else? Pin
Chadwick Posey22-Mar-13 7:48
memberChadwick Posey22-Mar-13 7:48 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0022-Mar-13 10:45
memberlewax0022-Mar-13 10:45 
GeneralReading Code Pin
Kyudos20-Mar-13 11:22
memberKyudos20-Mar-13 11:22 
GeneralRe: Reading Code Pin
wizardzz20-Mar-13 11:29
memberwizardzz20-Mar-13 11:29 
GeneralRe: Reading Code Pin
AspDotNetDev20-Mar-13 11:40
protectorAspDotNetDev20-Mar-13 11:40 
JokeRe: Reading Code Pin
Kyudos20-Mar-13 11:47
memberKyudos20-Mar-13 11:47 
GeneralRe: Reading Code Pin
lewax0020-Mar-13 11:42
memberlewax0020-Mar-13 11:42 
GeneralRe: Reading Code Pin
CDP180220-Mar-13 11:39
memberCDP180220-Mar-13 11:39 
GeneralRe: Reading Code Pin
dusty_dex20-Mar-13 11:45
memberdusty_dex20-Mar-13 11:45 
JokeRe: Reading Code Pin
Kyudos20-Mar-13 11:48
memberKyudos20-Mar-13 11:48 
GeneralRe: Reading Code Pin
PIEBALDconsult20-Mar-13 12:50
memberPIEBALDconsult20-Mar-13 12:50 
GeneralRe: Reading Code Pin
Rob Grainger22-Mar-13 3:00
memberRob Grainger22-Mar-13 3:00 
GeneralRe: Reading Code Pin
Eddy Vluggen20-Mar-13 12:45
mvpEddy Vluggen20-Mar-13 12:45 
GeneralRe: Reading Code Pin
_Josh_20-Mar-13 13:31
member_Josh_20-Mar-13 13:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 1 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid