Skip to content

Investigate constraining behaviour #85

@nsbgn

Description

@nsbgn

Consider this:

    TypeSchema(lambda x, y, z: F(x, x) ** z[F(x, A)]).apply(F(A, A))

... does not yield F(A, A)

    TypeSchema(lambda x, y, z: F(x, x) ** z[F(x, x)]).apply(F(A, A))

does yield F(A, A).

The logic for unifying with constraints doesn't make full sense. Why would it be okay to unify with base types, but not with variables?

Also, we should make sure that the following works:

    TypeSchema(lambda x, y, z: F(x, y) ** z[F(x, A), F(y, A)]).apply(F(A, A))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions