Closed krishnangovindraj closed 1 month ago
Remove duplication in type_cache using generics.
KindAPI
EntityType, AttributeType, RelationType, RoleType
get_X_type_y(x)
get_y<X>(x: X)
selection
construction
Do not edit the content of this comment. The PR reviewer should simply update this comment by ticking each review item below, as they get completed.
Trivial Change
Code
Architecture
Usage and product changes
Remove duplication in type_cache using generics.
Implementation
KindAPI
to hold properties of the vertex types (EntityType, AttributeType, RelationType, RoleType
)get_X_type_y(x)
methods to beget_y<X>(x: X)
where X is a fundamental type, and y is some property of it such as supertype, label, etc.selection
submodule Introducing the traits needed to do thisconstruction
submodule.