The D Programming Language: switches
Frank Adams
franka at mmintl.UUCP
Fri Mar 18 01:56:04 AEST 1988
In article <941 at micomvax.UUCP> ray at micomvax.UUCP (Ray Dunn) writes:
>Case statements should just be generalised into a "shorthand" way of
>stating if...elseif...elseif...else...
Permit me to register my strong disagreement. if...elseif...elseif...else...
should be written:
if (...) {
...
} else if (...) {
...
} else if (...) {
...
} else {
...
}
(positioning the brackets as you see fit. Please let's not start *that*
discussion again!)
Computer languages don't need two equally attractive ways to say the same
thing.
--
Frank Adams ihnp4!philabs!pwa-b!mmintl!franka
Ashton-Tate 52 Oakland Ave North E. Hartford, CT 06108
More information about the Comp.lang.c
mailing list