libextobjc
libextobjc copied to clipboard
pedantic keywordify question
I used the keywordify macro in another repo. Seeing that, @mattmassicotte observed that
@try{} @finally {}
might be ... "lighter weight" than
@try{} @catch(...) {}
It's certainly fewer characters, and less to explain (i.e. the ... syntax). Thoughts?
To explain why catch is used, it's because there's a clang bug that prevents certain return analysis, but it happens with either try/catch or try/finally. I thought, but with no evidence to support it, that catch(...) would be perhaps easier for clang to reason about since it should prevent all non local returns (relative to exceptions in the try block). But lmoa if I confirmed any of this conjecture.