Skip to content

Internal representation of MultiDim vectors is too general #91

@emwap

Description

@emwap

When a MultiDim vector is converted to its internal representation, type information is lost.

Internal (Pull DIM2) a

becomes

([Length],[Internal a])

The number of dimensions is converted into a runtime property and the information is lost at the type level.

Among other things, this makes it impossible to write a good Arbitrary instance that will generate only arrays with the correct number of dimensions.

Can we make the internal representation an explicit (new)type instead of the pair and encode the dimensions so that the number of dimensions is still available in the type.

cc @josefs

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