-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PPX: Support open variants #40
Comments
in |
I was referring to this .atd's open enum feature https://atd.readthedocs.io/en/latest/atdgen.html#field-open-enum which works either for poly or regular variants. |
Hm... wondering what's the motivation for this restriction. |
probably a small optimization? if you don't allocate + create all ints + one string for the one with payload, you save a little bit? |
Sometimes there are type definitions like this:
This is useful because this code is "future compatible", meaning a server could add new cases without the client crashing, or the other way around.
Would be nice to support it in melange-json PPX.
The text was updated successfully, but these errors were encountered: