Hi,

I want to determine if a trait composition is different than other, for
example:

newClass traitComposition = oldClass traitComposition

But I didn't find an implementation. I imagine the simple implementation
that checks that all of its components are equal recursively. The
components are instances of either Trait, TraitAlias or TraitExclusion, and
it should be simple to define = on each of them.

Do experts on traits agree? I can open an issue and propose a slice.


This arose when looking into issue 12157, where the problem is that
ClassModifiedClassDefinition is always announced because the trait
composition *may* have changed. This way, ClassModifiedClassDefinition is
announced even when it was a class creation. We could also workaround the
lack of trait composition equality by comparing their 'asString's...

Bests,
Martín

Reply via email to