Re: welcome to the emelFM2 mailing list
- From: David Jensen <djensen@xxxxxxxxxxxxx>
- To: emelfm2@xxxxxxxxxxxxx
- Date: Tue, 13 Apr 2004 11:11:01 -0500
> do you have a good comparision of pros and cons for using and not using
> gotos?
>
no. in asm it's a jmp, C is supposed to be low level, so goto :)
the pro: may avoid needless tests and branches.
the con: may destroy structure.
goto is readable but you still must understand the function to know
why goto, and with understanding, readability becomes moot.
in the imlib2 example: the 2nd goto could and should be: break;
the 1st goto jumps around a redundant test and assign, but it could
likely be restructured. me? i added a ;
its too good to toss out, but like a broom, you prefer not to use it.
--
David Jensen
--
Users can unsubscribe from the list by sending email to
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by
logging into the web interface.
- References:
- welcome to the emelFM2 mailing list
- From: tooar
- Re: welcome to the emelFM2 mailing list
- From: David Jensen
- Re: welcome to the emelFM2 mailing list
- From: tooar
- Re: welcome to the emelFM2 mailing list
- From: David Jensen
- Re: welcome to the emelFM2 mailing list
- From: tooar
- Re: welcome to the emelFM2 mailing list
- From: David Jensen
- Re: welcome to the emelFM2 mailing list
- From: tooar
Other related posts:
- » welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » RE: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- » Re: welcome to the emelFM2 mailing list
- welcome to the emelFM2 mailing list
- From: tooar
- Re: welcome to the emelFM2 mailing list
- From: David Jensen
- Re: welcome to the emelFM2 mailing list
- From: tooar
- Re: welcome to the emelFM2 mailing list
- From: David Jensen
- Re: welcome to the emelFM2 mailing list
- From: tooar
- Re: welcome to the emelFM2 mailing list
- From: David Jensen
- Re: welcome to the emelFM2 mailing list
- From: tooar