[swift-evolution] [swift-evolution-announce] [Review] SE-0153: Compensate for the inconsistency of @NSCopying's behaviour
    Brent Royal-Gordon 
    brent at architechies.com
       
    Sat Feb 18 04:16:13 CST 2017
    
    
  
> On Feb 17, 2017, at 3:18 PM, Douglas Gregor <dgregor at apple.com> wrote:
> 
> https://github.com/apple/swift-evolution/blob/master/proposals/0153-compensate-for-the-inconsistency-of-nscopyings-behaviour.md
> 
> 	• What is your evaluation of the proposal?
I think a warning is very appropriate.
However, occasionally a constructor might be non-copying on purpose, so we'll need a way to disable the warning. A few possibilities:
* Use .self on the value
* Parenthesize the value
* Parenthesize the variable
I don't favor using compiler magic. Too spooky.
> 	• Is the problem being addressed significant enough to warrant a change to Swift?
Yeah, that's a pretty easy mistake to make.
> 	• Does this proposal fit well with the feel and direction of Swift?
Yes. Swift usually tries to help you avoid mistakes.
> 	• If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?
N/A.
> 	• How much effort did you put into your review? A glance, a quick reading, or an in-depth study?
Quick reading.
-- 
Brent Royal-Gordon
Architechies
    
    
More information about the swift-evolution
mailing list