Skip to content

labeled tuples ? #171

Description

@chetmurthy

Have you thought about how to support labeled tuples ?

So for the type (int * bool), the value (5, false) gets serialized as [5, false].
So maybe for the type (a:int * b:bool) the value (~a:5, ~b:true) might get serialized as [["a",5], ["b",false]] ?

I'm implementing this support for pa_ppx.deriving_plugins.yojson, so I have to make a decision about how to do it, so if you already had a decision made, I'd be happy to follow along.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions