msgpax icon indicating copy to clipboard operation
msgpax copied to clipboard

Add options argument to Msgpax.Packer protocol

Open y86 opened this issue 10 months ago • 0 comments

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 avatar Aug 22 '23 15:08 y86