Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

RFC: Variant maps

$
0
0

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.


Viewing all articles
Browse latest Browse all 2592

Trending Articles