-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add valueOf
support to XDR types.
#101
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
It is very convenient to be able to use XDR types that correlate to a native type in an inline, convenient way. For example, you could use
Hyper
inline with arithmetic operations, e.g.Describe the solution you'd like
valueOf()
methods added to each XDR primitive type we support.Describe alternatives you've considered
Each type has a way to access its raw, underlying value, but this is a little jankier.
Additional context
See @paulbellamy's comment here: stellar/dts-xdr#6 (comment).
The text was updated successfully, but these errors were encountered: