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

Add options argument to Msgpax.Packer protocol #67

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

Conversation

y86
Copy link

@y86 y86 commented Aug 22, 2023

This PR is a step in the direction of closing #60, by adding an options argument to Msgpax.Packer protocol.

With pack/2, we can introduce options to default types, such as Float, and clients can further customize their extensions behavior at runtime.

This is a breaking change, so a helper Msgpax.defiimpl macro was introduced to help in the migration and to allow further usage of the macro when considering how provide out-of-the-box overridable extensions.

@y86 y86 marked this pull request as ready for review August 22, 2023 15:41
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.

None yet

1 participant