[TUHS] I can't drive 55: "GOTO considered harmful" 55th anniversary

Dave Horsfall dave at horsfall.org
Fri Mar 10 16:15:38 AEST 2023


On Thu, 9 Mar 2023, Warner Losh wrote:

> In C I use it all the time to do goto err for common error recovery 
> because C doesn't have anything better.

<AOL>
Me too :-)
</AOL>

Seriously, I also use setjmp()/longjmp() for a more elegant exit from a 
deeply-nested loop; "break N" to break out of "N" loops, anyone?  I 
haven't found that yet...

Of course, in those days it was setexit() etc :-)

-- Dave


More information about the TUHS mailing list