[swift-evolution] [Review] SE-0047 Defaulting non-Void functions so they warn on unused results

William Shipley wjs at mac.com
Fri Mar 18 07:29:59 CDT 2016


Uh, sorry, I read that backwards. You’re right, I agree with the recommendation as written.

-W


> On Mar 17, 2016, at 6:36 PM, Erica Sadun <erica at ericasadun.com> wrote:
> 
> NSObservervationCenter example: should not be marked. Most observer lifetimes will be shorter than the application's lifetime and view controllers should clean up after themselves when dismissed, hidden, or otherwise put away. The compiler should emit warnings about this use that the developer must override.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160318/d43e2ff8/attachment.html>


More information about the swift-evolution mailing list