Skip to content

The operator ^-^ associates to the right #2

@DanielMe

Description

@DanielMe

It appears to me that the ^-^ operator associates to the right meaning that if I write

myConstraint = ((var "a") ^-^ (var "b") ^-^ (var "c")) `leqTo` 5

this will somwhat unintuitively be interpreted as

a-(b-c) <= 5

The expected behaviour would be for ^-^ to associate to the left:

(a-b)-c <= 5

I do recognize this repository is pretty much inactive and the issue looks easy enough to fix so I will take a look at it if I can find the time. I just thought I leave that note here just in case someone else stumbles over this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions