home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!Aurelius
- From: Aurelius@cup.portal.com (Mark Christian Barnes)
- Newsgroups: comp.lang.c++
- Subject: Re: GOTO, was: Tiny proposal for na
- Message-ID: <64877@cup.portal.com>
- Date: Fri, 28 Aug 92 21:13:32 PDT
- Organization: The Portal System (TM)
- Distribution: world
- References: <714668024@thor>
- <6800007@tisdec.tis.tandy.com><1992Aug26.130335.26725@hemlock.cray.com><MA
- TT.92Aug26122422@physics16.berkeley.edu> <rmartin.714929724@thor>
- <TMB.92Aug28192826@arolla.idiap.ch>
- Lines: 20
-
- my $0.02
-
- If discussions like this didn't keep happening, I would have
- forgotton a couple of C-ism entirely by now:
-
- 1) C has a goto statement.
- 2) Labels exist separately from the switch construct.
- 3) ditto with the break statement.
-
- I do use mid-function returns, i.e. "found it!, get out, done"
- ( my functions are almost always less than one page, or else! ).
- I usually have my if conditions succeed for the expected
- execution path (usually more efficient not to branch), so my
- exceptional code is in an else block, perhaps with a return.
- This also allows me to declare auto variables at the beginning
- of the conditional block, instead of at the top of the function.
- Many C dialects (VAX C for one) still don't allow variable
- declarations just anywhere.
-
- Regards, Aurelius@cup.portal.com
-