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

Michael's review #44

Merged
merged 4 commits into from
Jun 8, 2024
Merged

Conversation

nicolo-ribaudo
Copy link
Member

Ref #24 (comment)

@michaelficarra For GatherAsynchronousTransitiveDependencies I could not just use list concatenation because I need to avoid duplicates -- how does this look?

@nicolo-ribaudo nicolo-ribaudo changed the title Fix typo and move declaration Micheal's review Jun 7, 2024
@michaelficarra
Copy link
Member

Micheal's review

Michael's review 😉

spec.emu Outdated Show resolved Hide resolved
spec.emu Outdated
Comment on lines 1083 to 1085
1. <ins>For each Module Record _additionalModule_ of _additionalModules_, do</ins>
1. <ins>If _additionalModule_ is not in _evaluationList_, then</ins>
1. <ins>Append _additionalModule_ to _evaluationList_.</ins>
Copy link
Member

Choose a reason for hiding this comment

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

I don't think you need to go through all this to describe what you're really trying to do.

Suggested change
1. <ins>For each Module Record _additionalModule_ of _additionalModules_, do</ins>
1. <ins>If _additionalModule_ is not in _evaluationList_, then</ins>
1. <ins>Append _additionalModule_ to _evaluationList_.</ins>
1. <ins>Remove any duplicate entries from _additionalModules_.</ins>

We talk about Lists having duplicate entries all over the place.

Copy link
Member Author

Choose a reason for hiding this comment

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

Does this preserve ordering? I need to ensure that « x » + « y, x » becomes « x, y » and not « y, x »

Copy link
Member

Choose a reason for hiding this comment

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

Ah, good point. No I don't think it would.

@michaelficarra
Copy link
Member

LGTM otherwise.

@nicolo-ribaudo
Copy link
Member Author

Whops sorry about the typo 😅

@nicolo-ribaudo nicolo-ribaudo changed the title Micheal's review Michael's review Jun 8, 2024
@nicolo-ribaudo nicolo-ribaudo merged commit 6fd000a into tc39:main Jun 8, 2024
@nicolo-ribaudo nicolo-ribaudo deleted the micheal-review branch June 8, 2024 13:55
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