Skip to content

Make core API work with integers only #3

Description

@vortec

All core API functions accept two types to reference a node in the database: NodeData and integer.

Because the database doesn't understand our types :-) this means every function has to type check and convert passed NodeData objects into integers. This adds overhead, makes the code harder to read and possibly introduces type bugs.

Because we now have the wrapper objects, this convenience feature has become obsolete. I think it's a good idea to make all functions work with integers only and remove the possibility to pass in NodeData objects.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions