You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defining a trait CombinedTrait{X, T1, T2} with T1{X}, T2{X} traits.
The implementation of CombinedTrait{X, T1, T2} could be given by a function combine_trait implemented as trait_func1(X) && trait_func2(X) (I am not sure if this is feasible)
On the user side, a combined trait can be specified on a function with:
@traitfnfunctionhello(g::G) where {G <:Thing; CombinedTrait{T1{G}, T2{G}}}
The text was updated successfully, but these errors were encountered:
This could be a simpler alternative to #2
Defining a trait
CombinedTrait{X, T1, T2}
withT1{X}, T2{X}
traits.The implementation of CombinedTrait{X, T1, T2} could be given by a function
combine_trait
implemented astrait_func1(X) && trait_func2(X)
(I am not sure if this is feasible)On the user side, a combined trait can be specified on a function with:
The text was updated successfully, but these errors were encountered: