-
Notifications
You must be signed in to change notification settings - Fork 442
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
refactor: use patterns in more of the ast #270
Conversation
(this is a modern version of the original pattern-refactor started by @FranchuFranchu (cf1bc25)) |
tests/golden_tests/compile_file/unused_dup_var_linearization.hvm
Outdated
Show resolved
Hide resolved
& {2 c b} ~ (c a) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does hvm-core completely ignore the value of labels? As in, it doesn't ever look at the meaning of any specific values, just compares them between nodes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct
@(a, b) bod
orlet ((a, b), (c, d)) = val; nxt
)Term::Dup
andTerm::Ltp
are now part ofTerm::Let
let $x = ...
is valid)Term::Chn
is now part ofTerm::Lam
(even though this added features, the line count is net negative!)