Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimenting with element/its type relationship #61

Closed
wants to merge 2 commits into from

Conversation

laughedelic
Copy link
Member

The idea here:

  • ElementType type is just a holder for the unique label and a factory for creating TypedElements
  • TypedElement extends it. It holds the raw value and add all those graph API methods.

It comes from the idea that in the end we want just the User type for working with its values and the VertexType value user to refer to it as Users factory and the properties holder.

In the end I'm not sure this idea work well. It does simplify some things, but doesn't improve the things much and you still need to write some boilerplate when defining User: self(), fromRaw() and the constructor.

@laughedelic
Copy link
Member Author

Closing this. It was an experiment. See #62 for a better try.

@laughedelic laughedelic closed this Apr 5, 2016
@eparejatobes eparejatobes deleted the experiment/element-extends-its-type branch October 12, 2016 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant