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: Extract pattern string handling into an abstract method #366

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Jul 29, 2019

The PartitionNumberPattern and PartitionDateTimePattern algorithms contain
substantively similar prose to iterate over a string of the form
"aaa{property}bbb". Extracting this from from the domain-specific prose
makes all three algorithms more readable.

spec/negotiation.html Outdated Show resolved Hide resolved
Copy link
Contributor

@sffc sffc left a comment

Choose a reason for hiding this comment

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

spec/negotiation.html Outdated Show resolved Hide resolved
Copy link
Member

@leobalter leobalter left a comment

Choose a reason for hiding this comment

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

Two nit picks and otherwise it's looking good for me.

spec/negotiation.html Outdated Show resolved Hide resolved
spec/negotiation.html Outdated Show resolved Hide resolved
The PartitionNumberPattern and PartitionDateTimePattern algorithms contain
substantively similar prose to iterate over a string of the form
"aaa{property}bbb". Extracting this from from the domain-specific prose
makes all three algorithms more readable.

This also adds missing '!'s before Call() and uses the new intrinsics
notation.
@Ms2ger
Copy link
Contributor Author

Ms2ger commented Aug 26, 2019

Any more comments?

@sffc sffc requested a review from leobalter September 4, 2019 11:55
@leobalter leobalter merged commit 62f68a4 into tc39:master Sep 4, 2019
@Ms2ger Ms2ger deleted the PartitionPattern branch October 3, 2019 13:25
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.

4 participants