Open
Description
This will allow more flexibility re: key and data parameters.
Because Nim's method
facility doesn't support generics and because multi-methods are deprecated, we'll need to choose from one of several options:
- vtable approach as seen in e.g. nim-faststreams
- The approach taken in nim-eth's kvstore.nim
- Defining the core API in
datastore/datastore.nim
such that it is intended to be consumed by implementors ofDatastore
viainclude
instead ofimport
.
Note: the last option is currently considered the least desirable per previous team discussion, but I've included it in the list of possible approaches because it can work even if there are reasons to avoid it.
Metadata
Metadata
Assignees
Labels
No labels