On 30 May 2011, at 16:40, Roland King wrote:

> 
> On 30-May-2011, at 11:05 PM, julius wrote:
> 
>> 
>> On 30 May 2011, at 15:52,  Roland King <r...@rols.org> wrote
>>> 
>>> On 30-May-2011, at 9:18 PM, julius wrote:
>>> 
>>>> 
>>>>> They used the datatype which maps onto the thing they are describing, 
>>>>> array elements are non-negative integers, so they used NSUInteger. 
>>>> So are you saying that the designers made this decision solely because of 
>>>> a particular interpretation of dogma?
>>> 
>>> No. I am saying that semantically the 'size' of an array is a non-negative 
>>> integer and thus the correct way to represent it is with a data type which 
>>> represents non-negative integers. 
>> 
>> If that were all there was to it then I might agree but I don't think it is.
>> I think issues of program language complexity and the propensity of language 
>> constructs to induce coding errors are more important.
>> 
>> Julius
>> 
> 
> Whist seeing your side, I respectfully disagree. I think data types should as 
> closely as possible align with the data they actually represent.


But why do you think this requirement should trump all others and in all cases?

 

Julius




http://juliuspaintings.co.uk



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to