Click here to Skip to main content
15,923,281 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.

 
AnswerRe: VB haters, look away Pin
RickZeeland2-Aug-17 6:12
mveRickZeeland2-Aug-17 6:12 
Generalswitch statement Pin
Clifford Nelson2-Aug-17 6:16
Clifford Nelson2-Aug-17 6:16 
GeneralRe: switch statement Pin
PIEBALDconsult2-Aug-17 7:12
mvePIEBALDconsult2-Aug-17 7:12 
GeneralRe: switch statement Pin
Rainbird Developer2-Aug-17 8:44
Rainbird Developer2-Aug-17 8:44 
GeneralRe: switch statement Pin
BillWoodruff2-Aug-17 22:10
professionalBillWoodruff2-Aug-17 22:10 
GeneralRe: switch statement Pin
kalberts4-Aug-17 0:36
kalberts4-Aug-17 0:36 
GeneralRe: switch statement Pin
Clifford Nelson4-Aug-17 4:16
Clifford Nelson4-Aug-17 4:16 
GeneralRe: switch statement Pin
kalberts2-Aug-17 22:47
kalberts2-Aug-17 22:47 
Why didn't they make it multivariable as well, like in CHILL?

switch (a, b, c) {
(1, 'a', 4.3): ...code;
(2, 'A', 0.0): ...code;
(2, ELSE, pi): ...code;
(3, 'C', *): ...code;
ELSE: ...code;
}

* for a value means "don't care". ELSE for a value means "any value not used in any other switch alternative for this variable.

Yes, you CAN make it very messy if you exploit the flexibility for all that it is worth. But a diciplined use can be far more readable than a 20-way switch, each alternative with a 7-15 way (varying among the 20) switch, each of those again with a 2-15 way (varying) switch. Then I'd rather prefer the single, clean, 3-dimensional switch.
GeneralRe: switch statement Pin
Clifford Nelson4-Aug-17 4:18
Clifford Nelson4-Aug-17 4:18 
GeneralRe: switch statement Pin
kalberts4-Aug-17 4:56
kalberts4-Aug-17 4:56 
GeneralRe: VB haters, look away Pin
Jose A Pascoa2-Aug-17 6:33
Jose A Pascoa2-Aug-17 6:33 
NewsRe: The truth... Pin
Jeremy Falcon2-Aug-17 6:41
professionalJeremy Falcon2-Aug-17 6:41 
GeneralRe: The truth... Pin
ZurdoDev2-Aug-17 6:56
professionalZurdoDev2-Aug-17 6:56 
GeneralRe: The truth... Pin
Jeremy Falcon2-Aug-17 7:21
professionalJeremy Falcon2-Aug-17 7:21 
GeneralRe: The truth... Pin
ZurdoDev2-Aug-17 7:26
professionalZurdoDev2-Aug-17 7:26 
GeneralRe: VB haters, look away Pin
dandy722-Aug-17 6:50
dandy722-Aug-17 6:50 
GeneralRe: VB haters, look away Pin
ZurdoDev2-Aug-17 6:57
professionalZurdoDev2-Aug-17 6:57 
GeneralRe: VB haters, look away Pin
Marc Clifton2-Aug-17 7:07
mvaMarc Clifton2-Aug-17 7:07 
GeneralRe: VB haters, look away Pin
Jeremy Falcon2-Aug-17 7:25
professionalJeremy Falcon2-Aug-17 7:25 
GeneralRe: VB haters, look away Pin
KarstenK2-Aug-17 7:35
mveKarstenK2-Aug-17 7:35 
GeneralRe: VB haters, look away Pin
theoldfool2-Aug-17 7:51
professionaltheoldfool2-Aug-17 7:51 
GeneralRe: VB haters, look away Pin
dandy722-Aug-17 9:04
dandy722-Aug-17 9:04 
GeneralRe: VB haters, look away Pin
RedDk2-Aug-17 8:35
RedDk2-Aug-17 8:35 
GeneralRe: VB haters, look away Pin
atverweij2-Aug-17 22:54
atverweij2-Aug-17 22:54 
GeneralRe: VB haters, look away Pin
Bryan Schuler3-Aug-17 5:54
Bryan Schuler3-Aug-17 5: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.