• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Looking at self = [super init].
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking at self = [super init].


  • Subject: Re: Looking at self = [super init].
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 02 Jun 2015 16:22:13 -0500

On Tue, Jun 2, 2015, at 03:42 PM, Charles Srstka wrote:
> > On Jun 2, 2015, at 3:31 PM, Jens Alfke <email@hidden> wrote:
> >
> > I agree, actually. But in Swift the concept of ivar no longer exists, so I have to rely on color/style to distinguish properties from locals.
>
> My solution with Swift is to consistently use the “self.” prefix when
> referencing properties. If Apple could include an optional compiler
> warning to enforce this like they do with Obj-C auto-synthesis, it’d be
> *great* (hint hint for any Apple engineers that happen to be reading
> this).

If you think this would be a worthwhile change to Swift, please file a
Radar.

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Looking at self = [super init].
      • From: Michael David Crawford <email@hidden>
References: 
 >Re: Looking at self = [super init]. (From: Dave <email@hidden>)
 >Re: Looking at self = [super init]. (From: Britt Durbrow <email@hidden>)
 >Re: Looking at self = [super init]. (From: Quincey Morris <email@hidden>)
 >Re: Looking at self = [super init]. (From: Charles Srstka <email@hidden>)
 >Re: Looking at self = [super init]. (From: Michael David Crawford <email@hidden>)
 >Re: Looking at self = [super init]. (From: Britt Durbrow <email@hidden>)
 >Re: Looking at self = [super init]. (From: Charles Srstka <email@hidden>)
 >Re: Looking at self = [super init]. (From: Jens Alfke <email@hidden>)
 >Re: Looking at self = [super init]. (From: Charles Srstka <email@hidden>)
 >Re: Looking at self = [super init]. (From: Jens Alfke <email@hidden>)
 >Re: Looking at self = [super init]. (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Looking at self = [super init].
  • Next by Date: Re: How to debug a binding exception?
  • Previous by thread: Re: Looking at self = [super init].
  • Next by thread: Re: Looking at self = [super init].
  • Index(es):
    • Date
    • Thread