Skip to content

CalcDictionary members probably shouldn't be nullable and have default values #107

Closed
@heycam

Description

@heycam

I'm not sure why the CalcDictionary members are all defined to be nullable and have null default values. As there's no definition of the LengthValue.fromDictionary method it's hard to tell. :-) But probably you just want:

dictionary CalcDictionary {
  double px;
  double percent;
  ...
};

and then in the definition of the fromDictionary method (and the CalcLength constructor) you can check whether a given dictionary member is present or not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions