[FoRK] Re: gotos was: open source awareness [etc]

Lucas Gonze lgonze at panix.com
Fri May 20 15:14:34 PDT 2005

>> FWIW, I agree with him, and commonly use this goto pattern.

On Fri, 20 May 2005, Robert Harley wrote:
> Err..., I wasn't aware that this style had a following but it is
> uncannily like what I use.
> Either I'm copying, or everyone else is, or it just makes sense.

Me three.  It's an effective style.

Though, this is more robust when you have the option:

void caller(){
FILE fp;
if( fp) fclose(fp);

void callee(FILE *fp){
fp = fopen(...);

More information about the FoRK mailing list