-
Notifications
You must be signed in to change notification settings - Fork 28
Add remaining Decimal SDK functions #631
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 remaining Decimal SDK functions #631
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file intended to be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not. Removed
@@ -24,10 +33,16 @@ object DecimalSDK { | |||
RTDecimal(result) | |||
} | |||
|
|||
val asString = DynamicNativeFunction1("toString") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the val name should be consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toString is already defined for all objects in scala. I can do _toString or the likes if we want the name to look the same, but I can't override it, since the return value is different than the existing defined toString
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot about that 😆 let's do _toString
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Add the remaining unimplemented functions that are defined in the Morphir spec for Decimal.
The is also a small amount of refactoring, moving a small number of Decimal functions from Native to the DecimalSDK. This is done to ensure all functionality for Decimal is in the same location.