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

Generic format #50

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

matthiasbeyer
Copy link
Member

This PR adds a generic type parameter to specify the deserialization format.

This PR is not ready yet, and - maybe more importantly - is a draft because I just want to propose this. I'm not 100% happy with how the API looks!

Lets discuss whether something like this is an idea. Maybe we could change the API so that not a generic argument is passed, but an actual object, to make the API a bit easier to use...?


This includes #49

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This patch implements config format specification by providing
generic arguments to the API functions.

The type provided in the generic argument implements the deserialization
technique.

The example was adapted.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant