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

Error in inference example in README.md #2

Open
olus2000 opened this issue Sep 2, 2023 · 0 comments
Open

Error in inference example in README.md #2

olus2000 opened this issue Sep 2, 2023 · 0 comments

Comments

@olus2000
Copy link

olus2000 commented Sep 2, 2023

From README.md:

When we infer the type for the term quote dup apply we get the following:

quote dup apply : !t0!t1.((t0 t1) -> (t0 (t0 (t1)))

Notice this is exactly the same type as for dup which is what we expect intuitively.

This sounds trivially false. quote dup apply is not equivalent to dup in any concatenative system I'm aware of. If your system actually infers this type for quote dup apply then there must be a bug in it, and if it doesn't then the example is erroneous.

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