ararog / Unrar4iOS

Unrar library ported to iOS (deprecated, consider use https://github.com/abbeycode/UnrarKit)
173 stars 57 forks source link

Don't use exceptions for error handling #9

Closed augard closed 9 years ago

augard commented 12 years ago

For compatibility with ARC code: 7.6. Exceptions By default in Objective C, ARC is not exception-safe for normal releases…

Rationale: the standard Cocoa convention is that exceptions signal programmer error and are not intended to be recovered from. Making code exceptions-safe by default would impose severe runtime and code size penalties on code that typically does not actually care about exceptions safety. Therefore, ARC-generated code leaks by default on exceptions, which is just fine if the process is going to be immediately terminated anyway. Programs which do care about recovering from exceptions should enable the option.

ararog commented 10 years ago

Feel free to submit a PR.

ararog commented 9 years ago

I believe your latest PR fixed this, please let me know if not.