problems/risks due to programming language
Woodrow Baker
woody at rpp386.cactus.org
Mon Feb 26 23:53:14 AEST 1990
In article <SUY1G_Fxds13 at ficc.uu.net>, peter at ficc.uu.net (Peter da Silva) writes:
> switch(c)
> {
> case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9':
> digit();
> default:
> not_a_digit();
> }
>
I'd fire a programmer for code like this:
> a loop. I would suggest that 'break' be given a mandatory keyword argument:
> either 'break switch', 'break for', and so on.
So go define a macro to do that.
#define break_switch break
Cheers
Woody
More information about the Comp.lang.c
mailing list