Re: Ugly bug in Foundation, beware!
Re: Ugly bug in Foundation, beware!
- Subject: Re: Ugly bug in Foundation, beware!
- From: Marco Scheurer <email@hidden>
- Date: Thu, 3 Jun 2004 19:17:38 +0200
On Jun 3, 2004, at 7:01 PM, Ondra Cada wrote:
Nicko,
On 3.6.2004, at 18:39, Nicko van Someren wrote:
Any other arguments?
Actually I think the one that Marco made at the top, that only you
know when it is appropriate to deep copy the data structures used by
your program,
Ahem... well, as I wrote to Marco, paint me a newbie, and tell me:
what is a shallow immutable copy of a property list good for?
A deep immutable copy makes my own immutable snapshot of the complete
structure: many great usages(*). A shallow mutable copy makes, well, a
mutable copy--an array with the same contents which I can subsequently
change: many great usages. Shallow immutable copy? In twenty-odd years
of object-oriented programming I haven't bumped into a reasonable
usage of that. What would it be?
Easy: enumerating the shallow copy and removing some objects from the
original.
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.