Skip to content

Comments

Make Decimal constructors private#12615

Merged
Akirathan merged 3 commits intodevelopfrom
wip/akirathan/10799-private-decimal-ctors
Mar 25, 2025
Merged

Make Decimal constructors private#12615
Akirathan merged 3 commits intodevelopfrom
wip/akirathan/10799-private-decimal-ctors

Conversation

@Akirathan
Copy link
Contributor

@Akirathan Akirathan commented Mar 24, 2025

Fixes #10799

Pull Request Description

Declare Decimal constructors as private.

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.
  • If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

@Akirathan Akirathan added CI: No changelog needed Do not require a changelog entry for this PR. CI: Clean build required CI runners will be cleaned before and after this PR is built. labels Mar 24, 2025
@Akirathan Akirathan self-assigned this Mar 24, 2025
@Akirathan Akirathan marked this pull request as ready for review March 24, 2025 14:50
@github-actions github-actions bot added the -libs-API-change-Base Marks a PR that changes the public API of Standard.Base label Mar 24, 2025
@Akirathan Akirathan merged commit b61b7f3 into develop Mar 25, 2025
66 of 67 checks passed
@Akirathan Akirathan deleted the wip/akirathan/10799-private-decimal-ctors branch March 25, 2025 09:16
Copy link
Member

@JaroslavTulach JaroslavTulach left a comment

Choose a reason for hiding this comment

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

I am glad the constructors aren't really visible to end users.

## module Standard.Base.Data.Decimal
- type Decimal
- From_Float big_decimal:Standard.Base.Data.Decimal.BigDecimal original_value:Standard.Base.Data.Numbers.Float
- Value big_decimal:Standard.Base.Data.Decimal.BigDecimal
Copy link
Member

Choose a reason for hiding this comment

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

This is great, thank you!

@jdunkerley jdunkerley added this to the 2025-Q1 Release milestone Mar 25, 2025
farmaazon pushed a commit that referenced this pull request Mar 25, 2025
* Make Decimal constructors private

* Do not use private Decimal field from Standard.Table

* Regenerate API docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

-libs-API-change-Base Marks a PR that changes the public API of Standard.Base CI: Clean build required CI runners will be cleaned before and after this PR is built. CI: No changelog needed Do not require a changelog entry for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Decimal constructors private

5 participants