Re: [swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-06 Thread Honza Dvorsky via swift-evolution
Hi all, since you mentioned: > Individuals or teams that feel that explicit “self.” is beneficial for their own code bases can enforce such a coding convention via tooling with the status quo. Are there any existing tools that already do that? I was hoping for a compiler flag where one could

Re: [swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-06 Thread Trent Nadeau via swift-evolution
You can probably use SwiftLint (https://github.com/realm/SwiftLint) and create a new rule. On Wed, Jan 6, 2016 at 9:17 AM, Honza Dvorsky via swift-evolution < swift-evolution@swift.org> wrote: > Hi all, > > since you mentioned: > > Individuals or teams that feel that explicit “self.” is

Re: [swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-06 Thread Matthew Johnson via swift-evolution
> On Jan 6, 2016, at 11:47 AM, Douglas Gregor via swift-evolution > wrote: > > >> On Jan 6, 2016, at 6:56 AM, Greg Parker via swift-evolution >> wrote: >> >> >>> On Jan 6, 2016, at 6:17 AM, Honza Dvorsky via swift-evolution >>>

Re: [swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-06 Thread Honza Dvorsky via swift-evolution
Thanks Trent, I created an issue an there seems to be will to add it as an opt-in rule: https://github.com/realm/SwiftLint/issues/321 Greg and Doug, thanks for the details, I didn't realize that there aren't any language flags yet. In that case, I agree that moving this responsibility to a tool

Re: [swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-06 Thread Douglas Gregor via swift-evolution
> On Jan 6, 2016, at 6:56 AM, Greg Parker via swift-evolution > wrote: > > >> On Jan 6, 2016, at 6:17 AM, Honza Dvorsky via swift-evolution >> wrote: >> >> I remember this being discussed in the conversation about this proposal and >>

Re: [swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-06 Thread Charles Srstka via swift-evolution
> On Jan 6, 2016, at 8:56 AM, Greg Parker via swift-evolution > wrote: > >> On Jan 6, 2016, at 6:17 AM, Honza Dvorsky via swift-evolution >> > wrote: >> >> I remember this being discussed in the

Re: [swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-06 Thread T.J. Usiyan via swift-evolution
On Wed, Jan 6, 2016 at 2:18 PM, Charles Srstka via swift-evolution < swift-evolution@swift.org> wrote: > > I just spent a half hour last night debugging an issue that turned out to > be caused by something getting written to a property which I thought was > being written to a local variable, due

Re: [swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-06 Thread Charles Srstka via swift-evolution
> On Jan 6, 2016, at 1:34 PM, T.J. Usiyan wrote: > > On Wed, Jan 6, 2016 at 2:18 PM, Charles Srstka via swift-evolution > > wrote: > > I just spent a half hour last night debugging an issue that turned out to be

[swift-evolution] [Rejected] SE-0009 Require self for accessing instance members

2016-01-05 Thread Douglas Gregor via swift-evolution
The review of SE-0009 "Require self for accessing instance members`" ran from December 16–20, 2015. The proposal has been rejected. https://github.com/apple/swift-evolution/blob/master/proposals/0009-require-self-for-accessing-instance-members.md