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

View patterns #23

Open
foxfriends opened this issue Dec 25, 2023 · 0 comments
Open

View patterns #23

foxfriends opened this issue Dec 25, 2023 · 0 comments

Comments

@foxfriends
Copy link
Owner

foxfriends commented Dec 25, 2023

Seems handy, to reduce some queries that just have views applied in the next clause

Rules kind of handle this, but not quite in the way I hope, cause they're verbose

[parse line for chomp line in readlines!()]

Where expr ident = x desugars to ident' = x and ident = expr ident'

Seems like this is a generalization of the existing view patterns like - and typeof

ident could be generalized to any pattern really, since it's ident' in the expression anyway

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

1 participant