[net.lang.c] Long conditional expressions

lmg (10/25/82)

I'd like to know what people do with very long conditional expressions,
for example:

	if((a == b) && (c == d) && (e != f) && (g != h) && ((i >= j) || (k <= l)) && (m != n) && (o >= p)) {
		return(a);
	}

Should it just be allowed to wrap around, or should it be split, say, like this:

	if((a == b)
	&& (c == d)
	&& (e != f)
	&& (g != h)
	&& ((i >= j) || (k <= l))
	&& (m != n)
	&& (o >= p)) {
		return(a);
	}

Neither one is exactly pretty. Should the whole thing be recoded to remove
the problem?

					Larry Geary
					Bell Labs, Holmdel
					...npois!houxi!hosbc!lmg