Re: [heycam/webidl] Getting rid of optional (#905)

> But we don't use the `optional` keyword for that---because it's redundant with the default value.

Currently we do use `optional` keyword for every optional argument, and specifying a default value without `optional` is a syntax error.

```
ArgumentRest ::
    optional TypeWithExtendedAttributes ArgumentName Default
    Type Ellipsis ArgumentName
```

-- 
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/905#issuecomment-670557944

Received on Friday, 7 August 2020 14:56:45 UTC