Element-wise inference via generics #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
FormatRegistryMeta
meta class infers inheritance hierarchies via subclasses known undermro()
, but we still have to explicitly define compositional relationships by explicit elements (thecomponents
attribute in theCO3
base class). Inspired from some of the musings in the Resource-Medium realm, we may be able to also infer components by types provided to generics.For example, in a class
B(A)
, the parent relationship toA
is available underB.mro()
. But if we defineA
to be generic, e.g.,A[C]
, subtypes ofC
can be enforced as the compositional types of inheriting subclasses, e.g.,B[D]
whereD(C)
. Doesmro()
give this kind of info? Not sure.