Description
I think creating a different issue from #65 is a better idea.
Current problem
var_dump(new \Ds\Set([1, 3]) == new \Ds\Set([1, 2, 3])); // true
it makes me very sad as I definitively can't rely on Ds in my tests. And I use Ds
everywhere as it does a really nice job (thanks for that anyway)
Solution
Is there any reason why this behavior ? And is it a bug or a known behavior ? Looks too big that anyone complain about it ^^
Whatever I'm definitively open to contribute event if my C skill are very old because it cannot stay like that.
I already had a look on the (clean) code.
I guess we need to implements the compare_objects handlers on the internal htable ? Looks pretty obvious, I know. May be we can even use the toArray
and rely on array::compare_objects
?
Is there any stuff that prevent us to do that ?
Anyway, let me know what I can do to help on this very annoying issue.
Thanks