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

Guillaume Lessard glessard at tffenterprises.com
Thu Dec 10 17:23:55 CST 2015

> On 10 déc. 2015, at 15:58, Adrian Kashivskyy via swift-evolution <swift-evolution at swift.org> wrote:
> I think non-void functions should warn about their return value being unused by default, thus eliminating the need to attribute them with @warn_unused_result.

I strongly don’t like this idea. This being said, if it happens ann attribute that says "unused result are acceptable" must be created. Makes me wince.

Guillaume Lessard

More information about the swift-evolution mailing list