[swift-evolution] Variadics through tuples

Chris Lattner clattner at apple.com
Fri Jul 1 18:10:17 CDT 2016


> On Jul 1, 2016, at 4:05 PM, Vladimir.S via swift-evolution <swift-evolution at swift.org> wrote:
> 
> On 02.07.2016 0:42, James Froggatt wrote:
>> Thanks for pointing out the warning, I wouldn't have known otherwise. I tested using ‘try’ on a non-throwing function in the iOS Swift Playgrounds app, and didn't get a warning. The app doesn't seem to give warnings, only errors.
>> 
>> 
>> 
>> Relatedly, I think bracketless T -> T should be an error, not a warning, in Swift 3.
> 
> Strange, I also thought the proposal was to disallow such syntax, not just produce warnings. May be the work is in progress still..

Correct, it should be an error, but is staged in as a warning.

-Chris


More information about the swift-evolution mailing list