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

exists is a reserved keyword #350

Open
n-osborne opened this issue Sep 26, 2023 · 1 comment
Open

exists is a reserved keyword #350

n-osborne opened this issue Sep 26, 2023 · 1 comment

Comments

@n-osborne
Copy link
Contributor

The following gospel specification:

val exists : ('a -> bool) -> 'a list -> bool
(*@ b = exists p xs *)

will raise:

$ gospel check file.mli
File "file.mli", line 2, characters 8-14:
2 | (*@ b = exists p xs *)
            ^^^^^^
Error: Syntax error.

The problem is that exists is a reserved keyword, but also the classical name
for the exists function.

@shym
Copy link
Contributor

shym commented Sep 26, 2023

This extends to all the keywords, with in particular forall and pure as natural names for functions we would want to specify.

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