Skip to content
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 a initializer to Google_Protobuf_Duration with rounding control. #1747

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

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