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:
Anonymous2018-03-22 14:40
>>9 The problem is that you don't get stack unwinding with setjmp/longjmp. Other non-GCed languages like C++ and Rust have stack unwinding and RAII so you don't leak something if your function throws an exception/panic!s.