Skip to content

Should async_sequence be AsyncSequence? #1510

@saschanaz

Description

@saschanaz

What is the issue with the Web IDL Standard?

w3c/wot-scripting-api#578 (comment) raised a question of the new usage of snake_case. I think for async_iterable as a declaration it's ok-ish as there are no precedents of multi-word keyword there (only modifiers like readonly), but for async_sequence as a type certainly has PascalCase precedents - DOMString and its string friends, and FrozenArray and its array friend.

Perhaps this is a chance to think about consistent casing?

Looking back, we could keep async iterable as-is if we changed the type to AsyncSequence, even with the proposed async disposer in #1488 :

PartialInterfaceMember ::
    (... skipped ...)
    MaybeAsyncDeclarations
    async MaybeAsyncDeclarations

MaybeAsyncDeclarations::
  Iterable
  Disposer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions