Click here to Skip to main content
11,411,241 members (65,636 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? PinmemberMike Winiberg21-Mar-13 23:14 
GeneralRe: Does this language feature seem strange to anyone else? PinprotectorAspDotNetDev20-Mar-13 14:56 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0020-Mar-13 15:06 
GeneralRe: Does this language feature seem strange to anyone else? PinprotectorAspDotNetDev20-Mar-13 15:09 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberjschell21-Mar-13 11:04 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0021-Mar-13 11:27 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberCésar de Souza22-Mar-13 1:43 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0022-Mar-13 11: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? Pinmemberenglebart22-Mar-13 3:26 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0022-Mar-13 11:41 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberRafagaX22-Mar-13 7:40 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberChadwick Posey22-Mar-13 8:48 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0022-Mar-13 11:45 
GeneralReading Code PinmemberKyudos20-Mar-13 12:22 
GeneralRe: Reading Code [modified] Pinmemberwizardzz20-Mar-13 12:29 
GeneralRe: Reading Code PinprotectorAspDotNetDev20-Mar-13 12:40 
JokeRe: Reading Code PinmemberKyudos20-Mar-13 12:47 
GeneralRe: Reading Code Pinmemberlewax0020-Mar-13 12:42 
GeneralRe: Reading Code PinmemberCDP180220-Mar-13 12:39 
GeneralRe: Reading Code Pinmemberdusty_dex20-Mar-13 12:45 
JokeRe: Reading Code PinmemberKyudos20-Mar-13 12:48 
GeneralRe: Reading Code PinmemberPIEBALDconsult20-Mar-13 13:50 
GeneralRe: Reading Code PinmemberRob Grainger22-Mar-13 4:00 
GeneralRe: Reading Code PinmvpEddy Vluggen20-Mar-13 13:45 
GeneralRe: Reading Code Pinmember_Josh_20-Mar-13 14: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
Web04 | 2.8.150414.5 | Last Updated 26 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid