Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

libpng

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?

Name: Anonymous 2018-03-22 7:38

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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List