这是indexloc提供的服务,不要输入任何密码
Skip to content

Fitness distance steps 4 and 5 are inconsistent with the rest of the spec #933

@guidou

Description

@guidou

Steps 4 an 5 refer to settings dictionaries as if they were IDL dictionaries, having members. But settings dictionaries are not IDL dictionaries and their internal structure understood to be an implementation detail elsewhere in the spec.

The spec explicitly says We use the term settings dictionary for the set of values that might be applied as settings to the object., which does not necessarily translate to they working like IDL dictionaries with explicit members that might or might not be present.

Another problem is that step 4 says If constraintValue is a boolean, but the constrainable property is not, which sounds impossible in IDL. I understand that this is intended to support pan/tilt/zoom constraints which accept boolean and numeric values. These constraints are of type (boolean or ConstraintDouble), so the constraint value is compatible with the property. One way to make this clearer is to treat this particular constraint type separately, just like purely numeric constraints are treated separately from purely boolean/enum/string constraints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions