Skip to content

Dimensions checked as types #33

@stared

Description

@stared

(An idea💡)

The idea is to create Vectors and operator with types, e.g.

Vector<[x, y, pol, dir]> or operator Operator<[spin, spin], [spin, spin]>

Thay way, it would be possible to check types at the TypeScript level. It seems that in plain TS the operations are clunky, but it is possible to use:

https://github.com/ksxnodemodules/typescript-tuple/

I didn't know how to approach it, as some operations (e.g. partialDot) make the type dependent on values.

Also, for dimensions - should be also incorporate basis?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions