Closed
Description
Currently optional
parameters are forced. I think they should be an Option<T>
.
This depends on #14 to generate the correct glue code, provided the way options are represented in the end is compatible with these APIs.
Also, in the spec, optional
parameters can have a default. This doesn't really affect the rust function, but it could be mentioned in some generated documentation, perhaps.
WebIDL snippet from the Console api (console.*
):
[UseCounter]
void count(optional DOMString label = "default");
EDITS
- 2018-07-18 Added more detail.
Metadata
Metadata
Assignees
Labels
No labels