[swift-evolution] [swift-evolution-announce] [Review] SE-0047 Defaulting non-Void functions so they warn on unused results
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.
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution