Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: js1138

Obviously switch statements couldn't always follow this rule, but I loathed deeply nested conditionals.

Switch statements are 'gotos' in disguise.

108 posted on 11/15/2005 5:59:34 PM PST by ml1954 (NOT the disruptive troll seen frequently on CREVO threads)
[ Post Reply | Private Reply | To 96 | View Replies ]


To: ml1954
Switch statements are 'gotos' in disguise.

It's been ten years since I coded in C, but I think that is not entirely true. The default after executing a statement is to return and examine the next switch. I'm having a senior moment here, so I might be wrong.

112 posted on 11/15/2005 6:10:58 PM PST by js1138 (Great is the power of steady misrepresentation.)
[ Post Reply | Private Reply | To 108 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson