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

Félix Cloutier felixcca at yahoo.ca
Thu Mar 17 07:29:36 CDT 2016


Sorry for how informal this review is; I'm generally in favor of it, although I would recommend that imported C functions are by default tagged with @discardableResult.

Félix

> Le 17 mars 2016 à 07:33:10, Tino Heth via swift-evolution <swift-evolution at swift.org> a écrit :
> 
>> Perhaps we could add some kind of attribute to the type itself to allow for selection between the two behaviours?
> 
> 
> imho that's a good direction —  it's a pity that linking to other posts is so tedious ;-): I voted for something similar (change the setting for a whole module).
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160317/98198c59/attachment.html>


More information about the swift-evolution mailing list