Name: Anonymous 2018-03-21 15:18
setjmp to implement exceptions in C? What the fuck? Actually the entire API is a gigantic clusterfuck. Jesus Christ why does anybody use this shit?
setjmp to implement exceptions in C? What the fuck?what's so weird about it?
setjmp
is how you usually implement exceptions in C (the same way call/cc
is how you usually implement exceptions in Scheme). there's nothing unusual about it, tons of project do it this way. of course the question is whether you should try to implement exceptions in C instead of using idiomatic methods like return codes, output pointers or errno
. personally, I don't mind people doing that but I prefer the idiomatic way myself.