-
Notifications
You must be signed in to change notification settings - Fork 6
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
β¨ Simplify constructors for Zero
#676
Comments
LVMVRQUXL
added
feature
New feature or request.
common
Item related to all platforms.
labels
Jul 14, 2024
LVMVRQUXL
changed the title
β¨ New constructors for
β¨ Simplify constructors for Jul 14, 2024
Zero
Zero
This was referenced Jul 14, 2024
LVMVRQUXL
added a commit
that referenced
this issue
Jul 14, 2024
After resolving this issue, we will be able to introduce the |
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
Using RegExr might be a solution for storing and documenting the regular expression used by the |
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
This commit inlines the `Zero.Companion.PATTERN` constant in the `Zero(Any)` constructor for future removal.
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
This commit introduces an `InvalidZeroRepresentation` type in the `types-internal` subproject for refactoring the exception message returned by the `Zero(Any)` constructor in case of invalid number.
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
LVMVRQUXL
added a commit
that referenced
this issue
Jul 15, 2024
Superseded by #681. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π Description
For aligning with our design goals on less is more, we want to provide only constructors for creating an instance of the
Zero
type in a natural way. These constructors should be accessible from all Kotlin platforms and Java.Here's the Application Programming Interface (API) goal that we want to achieve with this issue:
These constructors should replace all factory functions introduced previously for the
Zero
type.Also, the
Zero.Companion.PATTERN
property being used only by theconstructor(Any)
function of theZero
type, we want to remove it from the public experimental API and merge its documentation into this constructor's documentation.β Checklist
constructor(Any)
function with tests, documentation and samples.Zero
type for removing factory functions other than constructors.Zero
type and unused internals.constructor(Any)
function for removing usages of theZero.Companion.PATTERN
property.constructor(Any)
function for removing usages of theZero.Companion.PATTERN
property.Zero.Companion.PATTERN
property.Zero.Companion
type.constructor(Any)
function by introducing an internalInvalidZeroRepresentation
type.The text was updated successfully, but these errors were encountered: