-
-
Notifications
You must be signed in to change notification settings - Fork 103
Improve definition of XExpr type #1444
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resyntax analyzed 0 files in this pull request and found no issues.
I worry a little about restricting the space of numbers like this. The change means that |
I see your point. I had assumed this restriction to be a feature, since now you have to make an argument for the subtraction result to be positive for Which is preferable? |
The pr now introduces only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resyntax analyzed 0 files in this pull request and found no issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resyntax analyzed 0 files in this pull request and found no issues.
Unfortunately this goal is not possible. Consider 55926. It is a |
I understand. Thanks, @samth for your patience. The current change strictly widens the definition of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resyntax analyzed 0 files in this pull request and found no issues.
The type XExpr has been defined as follows:
The above definition includes the superfluous type
Number
but is missing the typePcdata
.The type
Number
is superfluous because so-called valid characters (valid-char?
) are already covered byPositive-Index
.Pcdata
structs are covered byxexpr?
, but are missing from the above type definition.