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

Editorial: Improve PartitionDateTimeRangePattern #773

Merged

Conversation

gibson042
Copy link
Contributor

Some improvements noticed while reviewing #770

  • Better align with conventions
  • Consolidate practical-equality determination
  • Improve alias names
  • Add clarifying note

@gibson042 gibson042 requested a review from ryzokuken April 11, 2023 21:54
Copy link
Member

@ryzokuken ryzokuken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

1. Let _fieldName_ be the name given in the Range Pattern Field column of the row.
1. If _rangePatterns_ has a field [[<_fieldName_>]], let _rp_ be _rangePatterns_.[[<_fieldName_>]]; else let _rp_ be *undefined*.
1. If _rangePattern_ is not *undefined* and _rp_ is *undefined*, then
1. Set _patternContainsLargerDateField_ to *true*.
1. Else,
1. Let _rangePattern_ be _rp_.
1. If _dateFieldsPracticallyEqual_ is *true* and _patternContainsLargerDateField_ is *false*, then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a bit difficult to follow this change but now I'm confident the final result makes the flow simpler, thanks!

@ryzokuken ryzokuken merged commit c0df276 into tc39:master Apr 12, 2023
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.

2 participants