-
Notifications
You must be signed in to change notification settings - Fork 4
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
Consistent variant encoding and decoding #74
Comments
@dincho what were your thoughts behind this, do you agree? to be more explicit in this case I personally would probably favor |
Can we use |
I've to take a look and I'll get back with recommendation |
No, I've provided an alternative data constructors in the related PR. |
I was first lean to it as well, however the concise version somehow made a bit more sense in terms of public API, because you don't need to carry keys and keep them backward compatible. Also I think the SDK is already utilizing that structure? Please see the related PR |
I have noticed that encoder accepts variants as
{ variant: 'Year', values: [] }
, but decodes as{ Year: [] }
, would be better to use one approach in both cases, but I'm not sure which one is better.The text was updated successfully, but these errors were encountered: