[swift-evolution] Proposal: Re-instate mandatory self for	accessing instance properties and functions
    David Hart 
    david at hartbit.com
       
    Fri Dec  4 17:22:59 CST 2015
    
    
  
It would, so it’s better than nothing, but it would disappear as soon as the un-intentional bug appears. But, as Kevin stated, there are too many good used of shadowing to suffer a warning.
> On 05 Dec 2015, at 00:20, Stephen Celis <stephen.celis at gmail.com> wrote:
> 
> On Fri, Dec 4, 2015 at 5:59 PM, David Hart <david at hartbit.com <mailto:david at hartbit.com>> wrote:
> Stephen, as previously stated by Rudolf, his real-world example would not trigger such a warning because the title local variable no longer exists and therefore no longer shadows the instance property.
> 
> Wouldn't the warning trigger prior to refactoring and therefore be more apparent during such a removal?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151205/7099343a/attachment-0001.html>
    
    
More information about the swift-evolution
mailing list