Re: regarding "goto" in C
- From: Chris Dollin <kers@xxxxxxxxxx>
- Date: Mon, 09 Jan 2006 13:56:00 +0000
websnarf@xxxxxxxxx wrote:
> I personally follow only one rule regarding goto: avoid using it unless
> using it leads to either clearer code or faster (executing) code. This
> rule alone is sufficient to make the use of goto fairly uncommon in my
> code to the point of "spaghetti code" never being an issue. (If
> there's one exception it would have to be parsers -- but in those cases
> even the cleanest control structures don't actually lead to a clearer
> representation of the parser.)
I've never had to use a goto in a parser; could you unpack the reasons
why you've wanted one? [email if it's likely to be wildly off-topic.]
--
Chris "believes seventeen improbable things before coffee" Dollin
Seventeen, forty-two - what else is there?
.
- Follow-Ups:
- Re: regarding "goto" in C
- From: websnarf
- Re: regarding "goto" in C
- From: Joseph Dionne
- Re: regarding "goto" in C
- References:
- regarding "goto" in C
- From: M.B
- Re: regarding "goto" in C
- From: John Bode
- Re: regarding "goto" in C
- From: websnarf
- regarding "goto" in C
- Prev by Date: Re: using virtual function in c
- Next by Date: Re: strcpy() - dangerous?
- Previous by thread: Re: regarding "goto" in C
- Next by thread: Re: regarding "goto" in C
- Index(es):
Relevant Pages
|