-
Notifications
You must be signed in to change notification settings - Fork 180
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
Rename datetime format functions and traits #5847
Conversation
components/datetime/src/neo.rs
Outdated
@@ -563,7 +563,7 @@ where | |||
datetime: &I, | |||
) -> Result<FormattedDateTime, crate::MismatchedCalendarError> | |||
where | |||
I: ?Sized + IsInCalendar + AllInputMarkers<FSet>, | |||
I: ?Sized + InCalendar + AllInputMarkers<FSet>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: how about InSameCalendar to (a) make it more meaningful and (b) make it more parallel with InFixedCalendar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Justification: the fully qualified names have good parallelism
DateTimeFormatter::format_same_calendar
=>InSameCalendar
FixedCalendarDateTimeFormatter::format
=>InFixedCalendar
Also, "InCalendar" is too short and could mean something else in the future.
#5837