Re: CodingStyle question: multiple statements on a single line

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Krzysztof Halasa
Date: Wednesday, September 3, 2008 - 5:15 am

Roland Dreier <rdreier@cisco.com> writes:


The CodingStyle should never say "never" (nor "always").

Consider:

	if (a)		b;
	else if (c)	d;
	else if (e)	f;
	etc.

If the list is long and expressions simple this is IMHO much more
readable. The same with

	switch (a) {
	case b: c; break;
	case d: e; break;
	and so on.


Precisely.
-- 
Krzysztof Halasa
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: CodingStyle question: multiple statements on a single line, Frans Meulenbroeks, (Tue Sep 2, 11:57 pm)
Re: CodingStyle question: multiple statements on a single line, Krzysztof Halasa, (Wed Sep 3, 5:15 am)