[swift-evolution] Proposal: Re-instate mandatory self for accessing instance properties and functions
dabrahams at apple.com
Mon Dec 14 09:32:38 CST 2015
> On Dec 14, 2015, at 7:29 AM, Jeremy Pereira via swift-evolution <swift-evolution at swift.org> wrote:
>> On 14 Dec 2015, at 09:01, Andrew Brown via swift-evolution <swift-evolution at swift.org> wrote:
>> This discussion isn't going to be solved quickly so +1 for a compiler flag.
>> I'd propose the flag generates an error if member variables are accessed without self.
> I’d propose it only be a warning. The reason for this is that Chris Lattner, in an unrelated thread, expressed an aversion to compiler flags that create different dialects of the language and I agree with him.
Please consider that individually-selectable warnings have a tendency to do the same thing.
More information about the swift-evolution