From: Daniel N Date: 2006-11-23T13:08:05+09:00 Subject: Re: Compare Array Values? ------=_Part_46235_1264058.1164254882607 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/23/06, dblack@wobblini.net wrote: > > Hi -- > > On Thu, 23 Nov 2006, Gabriele Marrone wrote: > > > Morton smartly pointed out that elements can be arrays themselves. So, > should > > we treat them as any other kind of object and compare them with ==? > > I guess we should want to recursively apply our equality concept given > by the > > OP. > > We still don't have a ruling :-) I guess there are three > possibilities: > > 1. shallow -- just use == on nested arrays > 2. deep -- flatten nested arrays > 3. recursive -- do the comparison on nested arrays > > I've been assuming #1, but any of them could be interesting to > implement. For my purposes at the moment flatten is fine. But seeing your posts on it recently and considering the fact that I said it could be arbitrary elements, I guess #1 would probably be the go. ------=_Part_46235_1264058.1164254882607--