libextobjc icon indicating copy to clipboard operation
libextobjc copied to clipboard

pedantic keywordify question

Open claybridges opened this issue 11 years ago • 1 comments

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?

claybridges avatar May 29 '14 17:05 claybridges

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.

kastiglione avatar May 30 '14 03:05 kastiglione