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

Officially allow any type to be used for keys #17

Open
mhelvens opened this issue Jul 14, 2016 · 1 comment
Open

Officially allow any type to be used for keys #17

mhelvens opened this issue Jul 14, 2016 · 1 comment

Comments

@mhelvens
Copy link
Owner

Because we're using Map in the background, we don't really require keys to be strings.

@mhelvens
Copy link
Owner Author

Note there are a few disadvantages to this.

  1. If we allow keys to be arrays, we couldn't distinguish between vertex-keys and edge-keys (which are pairs of keys; consistency in key/value combo representations #6).
  2. If objects are used as keys, serialization to JSON will lose information about object identity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant