Re: [heycam/webidl] Sort out when dictionaries and records should have default values (#76)

@emlun 
> I note that the case of nested dictionaries seems very different from the case of dictionaries as function arguments.

are not those two cases related since (as we do in webauthn) one can have an "options dictionary", itself containing dictionary members, that is passed as a function argument? e.g.:
```
var publicKey = {
  [...]
  // Relying Party:
  rp: {
    name: "ACME Corporation"
  },

  // User:
  user: {
    id:[...],
    name: "alex.p.mueller@example.com",
    displayName: "Alex P. Müller",
    icon: "https://pics.example.com/00/p/aBjjjpqPb.png"
  },
 [...]

navigator.credentials.create({ publicKey })
  .then....;
```
..?




-- 
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/76#issuecomment-401911078

Received on Monday, 2 July 2018 19:37:18 UTC