[swift-evolution] Revisiting SE-0110

Vladimir.S svabox at gmail.com
Tue Jun 6 05:06:26 CDT 2017


On 06.06.2017 7:36, Gwendal Roué wrote:
> http://adcdownload.apple.com/WWDC_2017/Xcode_9_beta/Xcode_9_beta_Release_Notes.pdf
> 
>> The migrator does not properly distinquish between single-tuple and 
>> multiple-argument function types as described in SE–0110, causing additional 
>> mismatched type errors with the closure types that are passed to Standard Library 
>> functions expecting tuple objects. (32431899)
>>
>> Workaround: Manually fix the closure types to accept values of tuples instead of 
>> separate argument values.
>>
>>
>> When using $0 and $1 in a closure that is passed to a function expecting a closure 
>> with a single tuple argument, the compiler may error after migration with:
>>
>> error: closure tuple parameter '(TYPE, TYPE)' does not support destructuring with 
>> implicit parameters
>>
>> (32489893)
>>
>> Workaround: Change $0 and $1 references to $0.0 and $0.1 respectively.
>>
> Where are the firemen?

Could you help me to understand which of my question did you reply on with the above 
link and quotes? What are you trying to say? Thank you.

> 
> Gwendal
> 


More information about the swift-evolution mailing list