News for hackers. Stuff that matters.
Re:Let's write a setjmp by j16sdiz on Sunday February 12, 2023 @09:31AM (#34763033)
Yes, but the author was trying to avoid using libc.

> Yesterday I wrote that setjmp is handy and that it would be nice to have without linking the C standard library.

Related article from the same author. https://nullprogram.com/blog/2023/02/11/

Re:Let's write a setjmp by pm215 on Sunday February 12, 2023 @03:13PM (#34766402)
Personally I think that's throwing the baby out with the bathwater for most use cases. You could rephrase my comment as "if you're already committed to reinventing half of libc's wheels, this one is not really any harder or more awkward than most, but if you're not aiming for that overall goal then reinventing just this one wheel is a bad plan" if you like.