Skip to content

rename LengthValue.from{Value,Dictionary} to an overloaded from method #106

Closed
@heycam

Description

@heycam
  1. I don't think we should be exposing the term "dictionary" to authors, as it's really just an internal spec term.
  2. We can safely overload these two methods.

So how about having:

interface LengthValue {
  ...
  static LengthValue from(double value, LengthType type);
  static LengthValue from(CalcDictionary dictionary);
};

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