Skip to content

Investigate Data unification #52

Description

@mlhaufe

Unification is currently implemented as a part of pattern matching in traits.

What if this was lifted into something more first class? What would it enable?

example:

const Point2 = Data({x: Number, y: Number})

const pt1 = Point2(12, _),
    pt2 = Point2(_, 3)

const pt3 = unify(pt1, pt2)

pt3 === Point2(12, 3)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions