-
Notifications
You must be signed in to change notification settings - Fork 62
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
Allow to write predicates without question marks #682
Comments
I'm guessing we could use some insight on why Is the difference between a predicate and an expression only about the operators that they use? I think that by removing the question mark, the grammar becomes left recursive via: |
@facundominguez the honest answer is it is just a quirk of history. Originally we had separate types Expr and Pred and the former were not supposed to be bool valued, but over time this became untenable and so they are all really just a single type BUT the parser somehow still kept this (needless) stratification… so really no good technical reason! |
Thanks @ranjitjhala. That is helpful to know. In that case, probably we should try consolidating the parsers. |
indeed though even better may be to switch over to a full SMTLIB style prefix-parens syntax … |
... yes, Ranjit, please start a new issue if you want to change the user interface that far :) Please correct me if I'm wrong: if Liquid Haskell continues to use the current language, only removing the question mark might still worth the trouble. |
Yup, you’re right! :-) |
Recently #678 introduced the ability to write predicates inside other expressions by using a question mark.
This issue is to investigate if we can remove the question mark.
The text was updated successfully, but these errors were encountered: