[swift-evolution] Make non-void functions @warn_unused_result by default

Adrian Kashivskyy adrian.kashivskyy at me.com
Thu Dec 10 19:10:31 CST 2015


Sure, I will be happy to conduct an investigation of iOS Foundation framework over the weekend and come back with numeric results.

Pozdrawiam – Regards,
Adrian Kashivskyy

> Wiadomość napisana przez Dmitri Gribenko <gribozavr at gmail.com> w dniu 11.12.2015, o godz. 01:49:
> 
> On Thu, Dec 10, 2015 at 4:47 PM, Adrian Kashivskyy
> <adrian.kashivskyy at me.com> wrote:
>> I'm sure there are plenty of methods in Foundation that return a value which
>> can be ignored. However, as Joe noticed, such functions are generally in
>> minority.
>> 
>> I'd rather see a couple of `@allow_unused_result` than a dozen of
>> `@warn_unused_result`.
> 
> We are interested in seeing the actual data.
> 
> Dmitri
> 
> -- 
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

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


More information about the swift-evolution mailing list