<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks, everyone, for all of the feedback.<div class=""><br class=""></div><div class="">I sent this proposal out as more of a “heads up” that we were planning to make these changes and get feedback in advance of that, so we won’t be taking this through the full proposal process. That said, here’s what we’re going to be doing:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">1. We’re going to let test methods throw, and treat those as unexpected failures, as planned.</div><div class=""><br class=""></div><div class="">2. We’re going to let test assertion expressions throw, and treat those as unexpected failures, as planned. We recognize that this will result in slightly different style in tests versus in regular code, but the convenience and reduction in boilerplate makes this worthwhile.</div><div class=""><br class=""></div><div class="">3. We’re going to add the <font face="Menlo" class=""><span style="font-size: 11px;" class="">XCTAssertThrowsError</span></font> assertion, incorporating Kevin Ballard’s suggestion for how to avoid the “<font face="Menlo" style="font-size: 11px;" class="">_ = blah()</font>” in its expression.</div><div class=""><br class=""></div><div class="">4. We’re <i class="">not</i>&nbsp;going to add the ability for <font face="Menlo" class=""><span style="font-size: 11px;" class="">XCTAssertThrowsError</span></font> to check that a specific error was thrown. This could definitely be useful but would require the function to take an <font face="Menlo" class=""><span style="font-size: 11px;" class="">ErrorType</span></font> instance that also conforms to <font face="Menlo" class=""><span style="font-size: 11px;" class="">Equatable</span></font>. We need to think about that some more before making such a change. Fortunately this sort of addition will be straightforward to put in via an overload or default argument, so if we choose to do it later, it shouldn’t break any code that starts to adopt <font face="Menlo" class=""><span style="font-size: 11px;" class="">XCTAssertThrowsError</span></font>.</div></blockquote><div class=""><br class=""></div><div class="">We’re going to start landing these changes today, so thanks again for all of your attention and feedback!</div><div class=""><br class=""></div><div class="">&nbsp; -- Chris</div><div class=""><br class=""></div></body></html>