The use of the Trait() factory function and related TraitHandler-based constructs is discouraged: most or all of its uses can be done by more modern TraitTypes such as Map and Union. These should be replaced by newer idioms so that the older constructors can eventually be removed from Traits.
These occasionally cause issues when mixed with newer trait types (eg. as in #828).
The use of the
Trait()
factory function and relatedTraitHandler
-based constructs is discouraged: most or all of its uses can be done by more modernTraitTypes
such asMap
andUnion
. These should be replaced by newer idioms so that the older constructors can eventually be removed from Traits.These occasionally cause issues when mixed with newer trait types (eg. as in #828).