Skip to content

Update all examples, and the lt for the type, to the new underscore'd token #1500

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tabatkins
Copy link
Contributor

@tabatkins tabatkins commented Jul 11, 2025

The most recent commit updated the grammar productions to require async_iterable rather than async iterable, but didn't update the examples in the spec.

I also updated the definition text to match.


Preview | Diff

Copy link
Member

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment on lines +4132 to +4135
async_iterable<value_type>;
async_iterable<value_type>(/* arguments... */);
async_iterable<key_type, value_type>;
async_iterable<key_type, value_type>(/* arguments... */);
Copy link
Member

Choose a reason for hiding this comment

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

This is not IDL type but the async iterable declaration, which should not change. Multiple people are being confused by this, maybe we should pick some different-enough name for async_iterable?

Copy link
Member

Choose a reason for hiding this comment

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

Can you explain why the same name here results in a problem for the grammar? Don't we have other concepts that share the name in this way?

Copy link
Member

Choose a reason for hiding this comment

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

You can try the change and see the linter complain, but basically explained here #1490

@@ -4211,7 +4211,7 @@ or [=regular operations=] with these names.
interface SessionManager {
Session getSessionForUser(DOMString username);

async iterable<DOMString, Session>;
async_iterable<DOMString, Session>;
Copy link
Member

Choose a reason for hiding this comment

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

Same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants