​Thats true, my only concern with that is if the user disables that
warning.​

*___________________________________*

*James⎥Lead Hustler*

*[email protected] <[email protected]>⎥supmenow.com <http://supmenow.com>*

*Sup*

*Runway East *

*10 Finsbury Square*

*London*

* EC2A 1AF *

On 17 August 2016 at 02:49, Boris Wang <[email protected]> wrote:

> Why the callback is special ?
>
> The compiler should has a warning for unused parameters of function.
>
> I think this is enough. More works should be leaved for a lint tool.
>
>
> James Campbell via swift-evolution <[email protected]>于2016年8月17日
> 周三06:39写道:
>
>> ​I'm not sure about that last question, I guess someone who knows more
>> about it than me could answer.​
>>
>> *___________________________________*
>>
>> *James⎥Lead Hustler*
>>
>> *[email protected] <[email protected]>⎥supmenow.com
>> <http://supmenow.com>*
>>
>> *Sup*
>>
>> *Runway East *
>>
>> *10 Finsbury Square*
>>
>> *London*
>>
>> * EC2A 1AF *
>>
>> On 16 August 2016 at 23:37, James Campbell <[email protected]> wrote:
>>
>>> @noescape is a hint that the callback will only be called once and
>>> allows compiler to optimise, we may or may not be able to combine @required
>>> functionality into that but it looks like it was rejected for now.
>>>
>>> @required is a compiler hint / sanity check to enforce that the callback
>>> is actually called once by the developer. There is no focus on any compiler
>>> enhancements other than that.
>>> ​
>>>
>>
>> _______________________________________________
>> swift-evolution mailing list
>> [email protected]
>> https://lists.swift.org/mailman/listinfo/swift-evolution
>>
>
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to