10000 Add remaining Decimal SDK functions by alexsieland · Pull Request #631 · finos/morphir-scala · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 26 commits into from
Jun 25, 2024

Conversation

alexsieland
Copy link
Contributor

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.

Copy link
linux-foundation-easycla bot commented Jun 18, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

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?

Copy link
Contributor Author

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") {
Copy link
Contributor

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

Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor
@michelchan michelchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@michelchan michelchan merged commit 4ff688a into finos:main Jun 25, 2024
14 checks passed
@alexsieland alexsieland deleted the feature/decimal-sdk-functions branch June 25, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0