-
Notifications
You must be signed in to change notification settings - Fork 159
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
PrepareCalendarFields: Consider merging "calendarFieldNames" and "nonCalendarFieldNames" parameters into a single parameter #3001
Comments
I'm not convinced about merging calendarFieldNames and nonCalendarFieldNames. I don't want to imply that CalendarExtraFields should be able to have its behaviour depend on nonCalendarFieldNames, even if it is now only for builtin calendars. The other stuff, sounds good. |
ptomato
added a commit
that referenced
this issue
Oct 8, 2024
ptomato
added a commit
that referenced
this issue
Oct 8, 2024
…rder It's easier to inspect at a glance which fields are included when they are given in order. This order is not observable because the list is sorted by lexicographical order anyway before being used to access properties. See: #3001
ptomato
added a commit
that referenced
this issue
Oct 8, 2024
ptomato
added a commit
that referenced
this issue
Oct 8, 2024
…rder It's easier to inspect at a glance which fields are included when they are given in order. This order is not observable because the list is sorted by lexicographical order anyway before being used to access properties. See: #3001
Ms2ger
pushed a commit
that referenced
this issue
Oct 8, 2024
Ms2ger
pushed a commit
that referenced
this issue
Oct 8, 2024
…rder It's easier to inspect at a glance which fields are included when they are given in order. This order is not observable because the list is sorted by lexicographical order anyway before being used to access properties. See: #3001
Ms2ger
pushed a commit
that referenced
this issue
Oct 8, 2024
Ms2ger
pushed a commit
that referenced
this issue
Oct 8, 2024
…rder It's easier to inspect at a glance which fields are included when they are given in order. This order is not observable because the list is sorted by lexicographical order anyway before being used to access properties. See: #3001
Ms2ger
pushed a commit
that referenced
this issue
Oct 8, 2024
Ms2ger
pushed a commit
that referenced
this issue
Oct 8, 2024
…rder It's easier to inspect at a glance which fields are included when they are given in order. This order is not observable because the list is sorted by lexicographical order anyway before being used to access properties. See: #3001
Closed in #3004. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without user-defined calendars it's probably no longer necessary to have separate
calendarFieldNames
andnonCalendarFieldNames
parameters which later get merged anyway. And passing additional field names toCalendarExtraFields
shouldn't matter, because this operation is now completely implementation-defined.Also maybe consider sorting the field names when calling
PrepareCalendarFields
into the natural order instead sorting alphabetically. IMO this improves readability.Currently in
Temporal.PlainDateTime.prototype.with
:When using a single list and sorting the field names per Table 20:
At least to me, the latter is easier to read.
And maybe consider moving
PrepareCalendarFields
into ch. "12 Calendars" instead of "13 Abstract Operations"?The text was updated successfully, but these errors were encountered: