We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently ConvertTz has the following signature:
ConvertTz
func ConvertTz[T TimeZone, U TimeZone](from Time[T]) Time[U]
Users have to specify both T and U at every call site like ConvertTz[T, U](...). However, if we change it to
ConvertTz[T, U](...)
func ConvertTz[U TimeZone, T TimeZone](from Time[T]) Time[U] // note that U and T are swapped
Users can simply call with ConvertTz[U](...) and let T be inferred from input arguments, which improves the ergnomics.
ConvertTz[U](...)
T
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Currently
ConvertTz
has the following signature:Users have to specify both T and U at every call site like
ConvertTz[T, U](...)
. However, if we change it toUsers can simply call with
ConvertTz[U](...)
and letT
be inferred from input arguments, which improves the ergnomics.The text was updated successfully, but these errors were encountered: