problems/risks due to programming language

Mike Jones mjones at fenway.uucp
Fri Feb 23 05:40:36 AEST 1990


In article <8111 at hubcap.clemson.edu> billwolf%hazel.cs.clemson.edu at hubcap.clemson.edu writes:
>   By requiring the use of a GOTO during normal processing (as C does
>   with its switch..break system), C encourages its programmers to get 
>   into the habit of using its restricted GOTO routinely.  As AT&T has
>   recently discovered, that can easily prove to be an expensive habit. 

Ah, I see it now. The problem here is that you keep insisting that the
use of break in switch statements is "normal processing". "Common" it
certainly is, but the very purpose of break is to *change* "normal"
processing. The switch statement in C is NOT equivalent to an 
if...else if...else statement group. It is common practice to use the
break statement to make it behave that way. Is this a design flaw? Quite
possibly, but it's not the same flaw you're claiming.
Mike Jones		|  The basic state of software development is that
AIX Development		|  we're all eating raw food because no one has the
Kingston, NY		|  time to learn how to cook.
.!uunet!ibmps2!aix!mjones



More information about the Comp.lang.c mailing list