-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: More changes for comparisons #3206
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.
this WFM though I think one of the other editors preferred to keep "the same X Record" when we talked about this last
It seemed odd to me that #2877 didn't eliminate that form, so I checked the PR's comments for any discussion of it, but didn't find anything. |
That sounds like the sort of opinion I'd have. I do kind of prefer "the same X Record" because it makes it really, really clear that comparison is by identity rather than structural, without you having to keep in mind the details of how identity works for each kind of spec value. |
So are there other kinds of values for which you'd like this clarity? |
Only really Records and Lists. |
Per call, we mildly prefer to keep the "same Record as" form, extending I guess to using it in the existing |
But we do like the change to use |
Okay, I've dropped the first commit (reinstating the status quo uses of |
(force-pushed to squash it down to one commit) |
Specifically: - change `SameValue` to `is` for comparison of String values - change `SameValue` to `is` for comparison of Number values - change `is` to `=` for comparison of BigInts - change `is` to `=` for comparison of math values - change `is` to `are the same X Record` for comparison of Records
... in line with PR #2877 and PR #3202.
The first commit changes:
_X_ and _Y_ are [not] the same {Realm,Module} Record
to just:
_X_ is [not] _Y_
The second commit changes:
SameValue(_X_, _Y_) is {*true*,*false*}
to
_X_ is [not] _Y_
when the two values are both Strings, or else one is a String and the other is a String or
*null*
.