??? 10/28/08 16:46 Read: times |
#159430 - braces Responding to: ???'s previous message |
Richard Ries said:
One of my gripes with C is multiple closing braces:
} } } } ... very difficult to follow, even if proper indenting is used. Of course, comments may help: } /* endif */ } /* end if */ } /* end while */ } /* end function */ but why not have them in the language itself? The same could be said of Pascal - it just has END. I s'pose the thing is that both 'C' and Pascal allow a compound statement to be used anywhere that a simple statement could - so there is no specific "end" that always has to go with a "then" or a "for"...? |