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

Inject matched variables into where predicate scope #54

Open
HarrisonGrodin opened this issue Oct 8, 2018 · 0 comments
Open

Inject matched variables into where predicate scope #54

HarrisonGrodin opened this issue Oct 8, 2018 · 0 comments
Labels
feature New feature or request

Comments

@HarrisonGrodin
Copy link
Owner

Predicates written in @term RULES using the where clause could benefit from some syntactic sugar. Rather than having to explicitly index into the given match, the scope could automatically be aware of the variables.

(abs(x) => x) where-> isvalid(Image(σ[x], Nonnegative))}  # current
(abs(x) => x) where {isvalid(Image(x, Nonnegative))}  # proposed
@HarrisonGrodin HarrisonGrodin added the feature New feature or request label Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant