Re: Obj-C - your thoughts on hiding data members?
Re: Obj-C - your thoughts on hiding data members?
- Subject: Re: Obj-C - your thoughts on hiding data members?
- From: Rick Mann <email@hidden>
- Date: Wed, 27 Jan 2016 11:58:40 -0800
> On Jan 27, 2016, at 03:30 , Dave <email@hidden> wrote:
>
>> I would strongly urge that anyone prefixing ivars use this convention, for consistency. Additionally, I find that the underscore adds less visual clutter than a letter like “m”. Your brain doesn’t see it as a letter, so it doesn’t get in the way of reading the variable name.
>
> I find the “_” very difficult to see and also I tend to think of it as “Apple Reserved”, which I think it used to be?
I agree; I find the underscore very visually distracting, as it looks like an operator, not part of a word. It's a visceral reaction that makes me hate the Apple convention.
--
Rick Mann
email@hidden
_______________________________________________
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