lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Sep 22, 2014 at 12:12 PM, Hisham <h@hisham.hm> wrote:
There's a typo in your test case:

Ugh. Sorry for the noise.
 
The point of the shortcut is that, if a subtable t1 matches subtable
t2 somewhere along the way, then all further matches of t1 in the
table structure must map to that same t2 from the second table, or
else they are not structurally equivalent.

...
 
Does that make sense? (I had to come up with _some_ criterion for
equivalence...)

I appreciate your example since it demonstrates what I was concerned about. I believe is it safe to say that the criterion you selected is different from the "tables are equivalent if they serialize with ordered keys to the same string"  criterion. Which is "correct" depends on what you are trying to accomplish, of course.

e