<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=""><div class="">@Patrick,</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">I rarely use the result value of removeLast() and I don't see how requiring it here adds any safety. It is obvious this call has side-effects&nbsp;and doesn't just return the last element.</blockquote><br class=""></div><div class="">Actually, <font face="Menlo" class="">removeLast()</font> and other <font face="Menlo" class="">pop()</font>-like functions are examples of functions that will most probably be marked with <font face="Menlo" class="">@discartableResult</font> attribute.</div><div class=""><br class=""></div><div class="">————————————————————</div><div class=""><br class=""></div><div class="">@Brent,</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">I would prefer that we either use a shorter word than "discardable", attach the keyword to the return type as discussed in "Future&nbsp;Directions", or both.</blockquote><br class=""></div><div class="">That was the first idea, but it has been changed to function declaration attribute, per&nbsp;<a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160314/012823.html" class="">core team design discussion</a>.</div><div class=""><br class=""></div><div class=""></div><blockquote type="cite" class=""><div class="">I also don't like that this proposal doesn't include an "Impact on existing code" section. We ought to decide whether the migrator will add&nbsp;`@discardableResult` to existing symbols or not.</div></blockquote><div class=""><br class=""></div>I totally agree with Erica – the migrator should only remove existing <font face="Menlo" class="">@warn_unused_result</font> attributes. <font face="Menlo" class="">@discardableResult</font> should be added manually and deliberately to functions in stdlib and your own code. We'll be happy to clarify this behavior under "Impact on existing code" section.<div class=""><br class=""></div><div class="">————————————————————</div><div class=""><div class=""><br class=""></div><div class="">@Jed,</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">That said, the problem isn’t necessarily difficult to solve — it’s just that it’s important that it actually be solved at the same time the&nbsp;feature is rolled out.<br class=""></blockquote><div class=""><br class=""></div>I cannot speak for Apple, but judging from last Swift releases where SDKs were always up-to-date with latest Swift changes, I believe this change will be reflected as well.</div><div class=""><br class=""></div><div class="">The only place that inconsistencies may appear, are third-party libraries, but this has always been the case with all language changes.<br class=""><div class="">&nbsp;<br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div></div></div></div><div class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font color="#929292" class="">Regards,</font></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font color="#929292" class="">Adrian Kashivskyy</font></div></div></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font color="#929292" class=""><br class=""></font></div></body></html>