Skip to content

Conversation

thomasvl
Copy link
Collaborator

Provide a new initializer with explicit rounding controls and map the other initializer though the single code paths.

Provide a new initializer with explicit rounding controls and map the
other initializer though the single code paths.
@thomasvl
Copy link
Collaborator Author

thomasvl commented Jan 16, 2025

There's a question to if we should deprecate the existing apis in favor of this this new one. Thoughts?

@allevato
Copy link
Collaborator

IMO, I would deprecate init(timeInterval: TimeInterval) and point users to the new one with renamed:, since the argument label in the new one more clearly spells out the behavior of the conversion.

Also remove the tests so we can still build/test warnings free and with warnings
upgraded to errors.
@thomasvl
Copy link
Collaborator Author

IMO, I would deprecate init(timeInterval: TimeInterval) and point users to the new one with renamed:, since the argument label in the new one more clearly spells out the behavior of the conversion.

Pushed a second commit with that, I can also drop it and force push again if we don't want to do it.

@thomasvl thomasvl merged commit 035c0c4 into apple:main Jan 23, 2025
12 checks passed
@thomasvl thomasvl deleted the better_interval_rounding_api branch January 23, 2025 14:11
@thomasvl thomasvl added the 🆕 semver/minor Adds new public API. label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants