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

Too much ghost keywords? #395

Open
n-osborne opened this issue Apr 4, 2024 · 0 comments
Open

Too much ghost keywords? #395

n-osborne opened this issue Apr 4, 2024 · 0 comments

Comments

@n-osborne
Copy link
Contributor

Duplicated from discussion on #393:

I've spotted that there is the val keyword for introducing ghost declaration. I believe this is a relic of a previous version of the language as it is used in the vocal tests and in just one example from the walkthroughs/union-find.md documentation file but not really documented as a keyword introducing a ghost value.

I'm not sure we want to keep it, as there is no appearent distinction with function and we're already wondering whether to keep predicate in #391.

I believe we can move forward with removing the val keyword. (Or we can go the other way around and remove the function keyword).

Offline discussion didn't reach a strong agreement (nor a strong disagreement) on the predicate one.

predicate can indeed been seen as a nice, though not necessary, syntactic sugar for functions returning a bool (once #391 has been merged). The cost of maintaining it doesn't seem to be too hight neither. The decision may be reduced to the question whether we want to simlpify the existing syntax. This may not be a bad idea as there are some new syntax that are worked on that are really related to conceptual subtleties (e.g. ownership).

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