Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename boolean operations in FileTest module #76

Open
harendra-kumar opened this issue Jul 26, 2022 · 0 comments
Open

Rename boolean operations in FileTest module #76

harendra-kumar opened this issue Jul 26, 2022 · 0 comments
Assignees

Comments

@harendra-kumar
Copy link
Member

Currently we use <> and and for boolean conjunction, and or for boolean disjunction. I propose the following changes:

  • Add .& for conjunction and .| for disjunction. . acts as a mnemonic for composing predicates and &, | indicate the boolean &&, ||.
  • Remove/reimplement and and or so that they can be used for conjunction or disjunction of a list of predicates
  • Rename neg to not_
  • Remove the Semigroup instance so that there is only one way of using conjunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants