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

Michael Silk michaelslists at gmail.com
Fri May 20 15:06:45 PDT 2005


I one used goto in c# (it has a 'reduced scope' form), it was good
because I could solve my problem quickly; bad becacuse the code was
then a little silly.

-- Michael

On 5/20/05, Joe Barrera <joe at barrera.org> wrote:
> Robert Harley wrote:
> 
> >  You can't have asked that tongue-in-cheek and expected not to get an
> >  actual answer, now, can you?
> 
> Well, not on this list, I guess...
> 
> >  Obviously gotos are called for once in a while to branch away and
> >  handle an error or speical case.
> 
> Looks like most or all of your examples would be unnecessary if
> you had exception handling and garbage collection. Conversely,
> after many years of programming in Java, I can't remember a time
> where I needed or wanted to use a goto.
> 
> In C, I would very often have a label at the end of a function
> that would test various pointer variables and free them if they
> were non-null. But that's not required if you don't have to
> explicitly free anything, and if there is cleanup to be done explicitly,
> there's always the finally block.
> 
> - Joe
> 
> _______________________________________________
> FoRK mailing list
> http://xent.com/mailman/listinfo/fork


More information about the FoRK mailing list