Skip to content

Comments

Add options argument to Msgpax.Packer protocol#67

Open
y86 wants to merge 3 commits intolexmag:masterfrom
y86:update-pack-protocol-to-accept-options
Open

Add options argument to Msgpax.Packer protocol#67
y86 wants to merge 3 commits intolexmag:masterfrom
y86:update-pack-protocol-to-accept-options

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.

1 participant