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.


David

-- 
                   David A. Black | dblack / wobblini.net
Author of "Ruby for Rails"   [1] | Ruby/Rails training & consultancy [3]
DABlog (DAB's Weblog)        [2] | Co-director, Ruby Central, Inc.   [4]
[1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com
[2] http://dablog.rubypal.com    | [4] http://www.rubycentral.org