Re: Control Flow Coding Style
Dimitris Andreou <[email protected]>
| Newsgroups | gmane.comp.programming.language-of-the-year |
|---|---|
| Message-ID | <[email protected]> |
O/H Avdi Grimm έγραψε: > On Mon, Apr 28, 2008 at 11:11 AM, Dimitris Andreou > <[email protected] <mailto:jim.andreou%40gmail.com>> wrote: > > If the else part is never supposed to execute, why write an "if" > > statement then? > > Multiple else-if clauses. Right. The original proposition though: > 2) each if must have an accompanying else branch should be narrowed appropriately, as it stands it implies that this is applicable to even simple if statements.