Re: welcome to the emelFM2 mailing list

> 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.

Other related posts: