Yes, I found that after I submitted the bug. I still find it surprising that differently-nested structures stringify to the same thing, and the names seem a bit misleading, since stringification is still "deep" (it has to recurse into the structure to pull out all the leaves).
I'm wondering if there isn't a niche for a comparator that is still "shallow" in that it doesn't recurse past the top-level components of an aggregate, but still considers lists of differently-typed top-level items to be different. Thanks for the followup. On Fri, Mar 26, 2010 at 5:55 AM, Moritz Lenz via RT <perl6-bugs-follo...@perl.org> wrote: > is() does string comparison, and I see no bug in there. > > If you want structural equivalence testing, use is_deeply instead. > -- Mark J. Reed <markjr...@gmail.com>