-
Notifications
You must be signed in to change notification settings - Fork 32
Proposal: Add commutative to Operator #36
Copy link
Copy link
Open
Milestone
Description
#34 Adds support for random effects via the pipe operator. While going through the example in the PR I noticed that operations that are written as x2|m were then printed as m:x2 because formulaic sorts the factors within a term. Apart from the : that should be a | (this is not a major issue), order here does matter, so printing x2|m is not the same as printing m|x2.
This issue suggests that the Operator class could have a commutative property that indicates whether you can change the order of the operators or not.
But maybe there's a better approach? Let's have this space for discussion.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels