OH NO!! (Re: Standard Indentation etc.)

Barnacle Wes wes at wsccs.UUCP
Thu Dec 22 13:46:42 AEST 1988


>From article <952 at ardent.UUCP), by mec at outcast.ardent.com (Michael Chastain):
) OK, here's my favorite switch statement:
) 
) 	switch ( iThing )
) 	{
) 	default:
) 		stmt;
) 		break;
) 	case 1:
) 		stmt;
) 		goto LCase2;
) 	case 2:
) 	LCase2:
) 		stmt;
) 		break;
) 	}

In article <1098 at goofy.megatest.UUCP>, djones at megatest.UUCP (Dave Jones) writes:
> GOTO-Alert!! GOTO-Alert!!  Prepare asbestos suits immediately.
> Repeat.  Prepare asbestos suits immediately.
> This is not a drill.

How 'bout a USELESS GOTO ALERT!  If you remove the lines

) 		goto LCase2;

and

) 	LCase2:

the code does the same thing!  Whoever wrote this mess needs to get a job
he/she/it can actually handle.
-- 
                          Signature?  What Signature?
                      Oops, I left my .signature on Obie!
                           (e-mail to wes at obie.UUCP)



More information about the Comp.lang.c mailing list