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

Dmitri Gribenko gribozavr at gmail.com
Thu Dec 10 18:49:35 CST 2015


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>*/


More information about the swift-evolution mailing list