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

Dmitri Gribenko gribozavr at gmail.com
Wed Mar 2 13:53:04 CST 2016


On Wed, Mar 2, 2016 at 11:50 AM, Erica Sadun via swift-evolution
<swift-evolution at swift.org> wrote:
> This proposal recommends introducing two further comment fields,
> specifically mutableVariant and immutableVariantto take over the role of the
> former mutable_variant: argument and offer recommendations in both
> directions.

The name 'mutable variant' is not a technically correct one.  There
are no "mutable method variants" -- methods can't be mutated, there
are *mutating* method variants.

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