Skip to content

Consider requiring optional dictionary defaulting explicitly #602

Closed
@annevk

Description

@annevk

Instead of

foo(optional dictionaryType arg);

perhaps we should require writing

foo(optional dictionaryType arg = {});

for consistency with other optional arguments and for clarity for the reader. At least anecdotally this seems to be one of the most confusing things about IDL that's not a legacy feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions