-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently we support declaring a wrapper type to be a subtype of some abstract type, e.g.
ThMonoid.Meta.@wrapper Monoid <: AbsAlgTypeThis creates smart constructor struct Monoid <: AbsAlgType which wraps implementations of ThMonoid.
We can also use a variant which produces a type Monoid{T} where T is the julia type of the underlying set
ThMonoid.Meta.@typed_wrapper Monoid <: AbsAlgTypeThe problem is that, if the abstract type itself has parameters, such as AbstractAlgType{T}, we cannot do:
ThMonoid.Meta.@typed_wrapper Monoid{T} <: AbsAlgType{T}So the @typed_wrapper macro should be extended to allow this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels