Element-wise inference via generics #1
Loading…
x
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
FormatRegistryMetameta class infers inheritance hierarchies via subclasses known undermro(), but we still have to explicitly define compositional relationships by explicit elements (thecomponentsattribute in theCO3base 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 toAis available underB.mro(). But if we defineAto be generic, e.g.,A[C], subtypes ofCcan be enforced as the compositional types of inheriting subclasses, e.g.,B[D]whereD(C). Doesmro()give this kind of info? Not sure.