On Tue, 4 Dec 2001, Andre Poenitz wrote: > On Tue, Dec 04, 2001 at 03:57:34PM +1000, Allan Rae wrote: > > preferred. Like this one instead of above? > > > > if (any length a && any length b && any length c) { > > } > > If it fits on a line, it should be ok. But then, why don't you put the test > in some function with some meaningful name and write > > if (someFancyConditionFulfilled()) { > }
Because by "any length" I also meant really simple stuff like for example: if (p && !p->empty()) { } Although that is probably the extreme of simple examples. Allan. (ARRae)