Long conditional expressions
    utzoo!decvax!harpo!npoiv!npois!houxi!houxb!lmg 
    utzoo!decvax!harpo!npoiv!npois!houxi!houxb!lmg
       
    Mon Oct 25 10:11:14 AEST 1982
    
    
  
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
    
    
More information about the Comp.lang.c
mailing list