Jane street has a similar thing, first class field values via a PPX.
A map that allows enum variants as keys and compiles to JSON still seems like a natural way to handle this. I’ll see if it would be hard to do with metaprogramming.
Jane street has a similar thing, first class field values via a PPX.
A map that allows enum variants as keys and compiles to JSON still seems like a natural way to handle this. I’ll see if it would be hard to do with metaprogramming.