trustgraph / trustgraph-holochain

Apache License 2.0
24 stars 3 forks source link

Consider using LinkTypes for forward and backward links #61

Open harlantwood opened 1 year ago

dauphin3 commented 1 year ago

I like this idea, I'm wondering if it would be useful to allow for variants instead of just unit types for the LinkTypes enum and submitted an issue to HC requesting this

reasoning is that we could have different type/labels for links to distinguish between things

we could add an All variant to LinkDirection

ex:

[hdk_link_types]

pub enum LinkTypes { Agent(LinkDirection), TrustAtom(LinkDirection), Perspective(LinkDirection), Neighborhood(LinkDirection) }

etc etc

dauphin3 commented 1 year ago

maybe this is not useful or necessary, but just a thought inquiry