News for hackers. Stuff that matters.
Re:Swift Asserts by mikeash on Friday March 04, 2016 @11:18AM (#11224730)
The mainQueue thing is because the catch-all exception handler is in the event loop, not the runloop. So if you throw during event handling (mouse down, key down) you'll hit it, but if it's something else (GCD, timers) you won't. It's extremely weird.

Good call about reportException:. Although I personally prefer to just avoid NSAssert. The good old C assert() gets the job done well for me.

There are no comments on this comment yet.