[whatwg/webidl] Should async_sequence be AsyncSequence? (Issue #1510)

saschanaz created an issue (whatwg/webidl#1510)

### What is the issue with the Web IDL Standard?

https://github.com/w3c/wot-scripting-api/pull/578#issuecomment-3124331912 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
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1510
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1510@github.com>

Received on Sunday, 27 July 2025 11:58:48 UTC