Improve definition of XExpr type#1444
Conversation
There was a problem hiding this comment.
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.
Resyntax analyzed 0 files in this pull request and found no issues.
There was a problem hiding this comment.
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.
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
Numberbut is missing the typePcdata.The type
Numberis superfluous because so-called valid characters (valid-char?) are already covered byPositive-Index.Pcdatastructs are covered byxexpr?, but are missing from the above type definition.