[swift-evolution] [Review] SE-0068: Expanding Swift Self to class members and value types
erica at ericasadun.com
Thu Apr 21 08:40:15 CDT 2016
> On Apr 21, 2016, at 5:53 AM, Jeremy Pereira via swift-evolution <swift-evolution at swift.org> wrote:
>> On 21 Apr 2016, at 02:14, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:
>>> 1) “Self" differs from “self” by just the first letter being capitalized. Regardless of case, it is confusing for the terms “self” or “Self” or “SELF” to mean different things from within the same context.
>> What, you've never done things like this?
>> let page = Page()
>> let document = Document(pages: [page])
>> let account = Account(oAuthToken: token)
> I have, but I always feel a tinge of guilt when I do it. I know I shouldn’t.
> Fortunately, karma is satisfied because Xcode autocomplete punishes me by always putting the capitalised version as the top choice.
Capitalized Self already exists in the language. This proposal extends the use to add consistency. Would you prefer to remove it entirely?
For example: http://stackoverflow.com/questions/27863810/swift-difference-between-self-and-self
More information about the swift-evolution