[swift-evolution] [Review] SE-0068: Expanding Swift Self to class members and value types
jeremy.j.pereira at googlemail.com
Thu Apr 21 06:53:34 CDT 2016
> 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.
> Brent Royal-Gordon
> Sent from my iPhone
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution