[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: @property coding style
From: |
David Chisnall |
Subject: |
Re: @property coding style |
Date: |
Sun, 29 Jan 2012 12:11:52 +0000 |
On 29 Jan 2012, at 12:07, Sašo Kiselkov wrote:
> On 01/29/2012 12:56 PM, David Chisnall wrote:
>> On 29 Jan 2012, at 07:51, Richard Frith-Macdonald wrote:
>>
>>> But I do still recommend ASSIGN, ASSIGNCOPY, and to a lesser extent,
>>> DESTROY. As these make it easier to reliably/safely manage reference
>>> counting.
>>
>> I forgot about those - I don't think of them as GNUstep extensions, since I
>> have implementations of them in another header so that I can use them on OS
>> X too - and I totally agree with Richard. Using these makes life a lot
>> easier, and avoids a lot of simple errors.
>
> Agreed, I'd be totally lost without those in my code. It has become such
> a strong habit, that using '=' to assign object pointers gives me a
> rather unpleasant feeling in my stomach.
Of course, when you're using ARC, = gives you something semantically equivalent
to ASSIGN, but generates better code ;-)
David
-- Sent from my IBM 1620