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

rhocaml structurallyEquivalent bug? #10

Open
dckc opened this issue Mar 2, 2019 · 2 comments
Open

rhocaml structurallyEquivalent bug? #10

dckc opened this issue Mar 2, 2019 · 2 comments

Comments

@dckc
Copy link
Collaborator

dckc commented Mar 2, 2019

0 | @0!(0) | @0!(0) is equivalent to (0 | @0!(0)) | @0!(0) right?

both are equivalent to @0!(0) | @0!(0)

Either my transcription to scala is wrong or there's a bug in rhocaml.

@dckc
Copy link
Collaborator Author

dckc commented Mar 2, 2019

Maybe rhocaml is only designed to handle data structures that would come from parsing and the parser doesn't emit nested Pars.

@Isaac-DeFrain
Copy link

Structural equivalence only encompasses alpha equivalence and associativity/commutativity of the | operator. So, yes to the first question, no to the second.

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