Hot take: Exceptions are a fine error-handling mechanism.
-
-
Swift as well uses a special convention where the error result is put in a normally-preserved register. A non-throwing caller has to null it out before calling, but once you're in throws-land you just need one instruction to check it after every other throwing call
-
[clarification to audience: this value is a pointer; errors must be boxed in swift]
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.