• 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: What's the point of @properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the point of @properties?


  • Subject: Re: What's the point of @properties?
  • From: Michael Watson <email@hidden>
  • Date: Fri, 24 Sep 2010 00:49:51 -0700

On 21 Sep, 2010, at 18:48, Matt Neuburg wrote:

> On Mon, 20 Sep 2010 03:56:20 -0700, Chris Hanson <email@hidden> said:
>> Don't think of dot syntax as syntactic sugar for sending messages. Think of dot
> syntax as the way to access the state exposed by an object, and bracket syntax
> as the way to have an object do something.
>
> No, I think that's bollocks. Dot syntax is *exactly* syntactic sugar for
> calling the accessor, and using it correctly depends upon keeping that fact
> firmly in mind. m.

I believe what Chris is saying is that you want to /think of/ properties as being state exposition. He isn't saying they're not technically sugar. If you think of them purely as sugar, you're missing the semantic value of using them in the first place.


--
michael

_______________________________________________

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

References: 
 >Re: What's the point of @properties? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: DO problem with NSConnection/NSSocketPortNameServer
  • Next by Date: "Settings" button in UITableView
  • Previous by thread: Re: What's the point of @properties?
  • Next by thread: Re: What's the point of @properties?
  • Index(es):
    • Date
    • Thread