Re: [heycam/webidl] No seemingly consistent Shepherd story (#240)

> Some types are exported (enumeration types), some are not (dictionary types, callback function types).

Recall that nothing needs to be explicitly exported except for "dfn" type definitions. The rest export implicitly unless you use `noexport`.

> Some types are labeled dfn, some are interface, some are dictionary. E.g., sequence is an interface, but record is a dictionary.

This is a little hand-wavey. Unless there's a better definition type (like `dictionary`), I prefer everything that defines a type name to be `interface`, just for regularity. But "record" and "sequence" don't really do that; they're not really IDL names, they're closer to IDL keywords, like the "interface" in `interface Foo`. You wouldn't ever write `{{record}}`, either. I'd probably mark up "record" and "sequence" as `dfn`, same as the keyword "interface" is.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/240#issuecomment-260749296

Received on Tuesday, 15 November 2016 19:57:27 UTC