TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DARIN MCBRIDE
from: CHRIS DOWNS
date: 1997-09-09 20:04:00
subject: Re: WHY THE BRACES?

 NH> How many is too many?  Should the switch statement be treated the sa
 NH> way goto is: only under duress? (and then, don't let anybody know yo
 NH> did it)?
 
 TM> No.  There  are  some  cases where switch statements make sense. There
 TM> aren't any cases where gotos make sense.
 DM> But... but... there ARE cases where gotos make sense.  Avoiding gotos
 DM> is good.  Avoiding gotos at all costs is not.  Sometimes, they just
 DM> make sense.  
 
 Being from Missouri, I've got to see it to believe it.  Even the
 various published pundits who say essentially the same as you never 
 show an example of "the judicious goto".
 DM> Reducing three levels of indentation via a single goto
 DM> will actually increase readability... sometimes.
 I suppose.  But I've found a fascinating correlation.  There are some
 folks who find goto quite useful to exit from deep inside nested
 loops.  Then there are those who don't get stuck inside of deeply 
 nested loops in the first place.
---
 þ Blue Wave/QWK v2.12 þ
---------------
* Origin: St. Louis Users Group (1:100/4)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.