Skip to content

Should the optional members of WriteParams be nullable? #181

@weinig

Description

@weinig

The current IDL definition of WritableParams is:

dictionary WriteParams {
  required WriteCommandType type;
  unsigned long long? size;
  unsigned long long? position;
  (BufferSource or Blob or USVString)? data;
};

It's a bit weird that size, position and data are both nullable (by virtue of the ?) and optional (by virtue of having no required keyword).

Is this intentional? If so, what is the purpose of being both optional and nullable. Do they indicate separate things?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions