Re: [swift-dev] SE-0047 - Defaulting non-Void functions so they warn on unused results

2016-11-01 Thread Jody Schofield via swift-dev
I agree that "_ =" is nicer than "(void)". > Do you find yourself writing a lot of functions that return non-void results that you frequently want to ignore? Maybe there's some idiom we could do a better job of recognizing. It really depends on the developer. Some will add return values thinking

Re: [swift-dev] SE-0047 - Defaulting non-Void functions so they warn on unused results

2016-10-31 Thread John McCall via swift-dev
> On Oct 30, 2016, at 5:49 AM, Jody Schofield via swift-dev > wrote: > Sorry, I'm sure this has been discussed before, but what the heck??? > > This feature is killing me. Now I have go add @discardableResult to every > function that returns a non-Void or use the ugly syntax `_ =`? > > Until

Re: [swift-dev] SE-0047 - Defaulting non-Void functions so they warn on unused results

2016-10-30 Thread Jody Schofield via swift-dev
Sorry, I'm sure this has been discussed before, but what the heck??? This feature is killing me. Now I have go add @discardableResult to every function that returns a non-Void or use the ugly syntax `_ =`? Until swift 3 I've really enjoyed the new language. Now I find it to be getting too rigid f