At 05:39 AM 9/2/2004, Roderick W. Failing III wrote:
>I usually write the block version for three reasons, listed in order of
>importance to me.
>
>1. In a debugger you can see the branch being executed or not.
>2. It makes it easier to add more statements to the branch.
>3. It visually enforces there is a branch in logic.
2a. Easier to consolidate branches in code written by other people
4. In all these years, I haven't figured out how to make Ratfor elide
then/endif.
The intermediate choice, putting IF() on one line, and the predicate on the
next, is awkward. If you have one of the few compilers supporting the
extension which allows skipping the line continuation indicators, you get
into more trouble than it's worth.
Tim Prince
|