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

Warner Losh imp at bsdimp.com
Mon Mar 13 07:50:12 AEST 2023


On Sun, Mar 12, 2023, 2:47 PM Dave Horsfall <dave at horsfall.org> wrote:

> On Fri, 10 Mar 2023, Steffen Nurpmeso wrote:
>
> > |Seriously, I also use setjmp()/longjmp() for a more elegant exit from a
> >
> > That is sheer unbelievable, really?  _So_ expensive!
>
> How often would you call setjmp()/longjmp()
>

Cheap enough for occasional error handling, way too expensive for a generic
exception handling system... processors with lots of registers were more of
a problem...

Warner

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20230312/4cf5b7c6/attachment.htm>


More information about the TUHS mailing list