-
Notifications
You must be signed in to change notification settings - Fork 326
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
Propagate comparator warnings via Any.== #11009
Conversation
These tests should pass now. |
There is 21 failing tests in Table_Tests what do you think about them, @GregoryTravis? |
The failures say |
These tests pass after 445e500 |
Engine benchmarks run is finished. Here are potential problems:
Update on Sep 25, 2024: The benchmarks regression should now be eliminated with 2c4b522 to be verified by engine benchmarks run. |
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.
I don't like the introduction of the new EqualsAndInfo
return type. Why can't EqualsNode.execute
just return Object
and for some specializations that should return a result with warnings just return WithWarnings
object, and for other a boxed Boolean
? Introduction of EqualsAndInfo
adds an inconsistency to how we manipulate with warnings.
Approved the enso tests to allow it to proceed. |
Such an approach has been tried already. Please see this diff: #10679 (comment) - there are few problems to it: Checking the result becomes more complicated. The above patch is using Warnings aren't efficient. Given 99.9% of use-cases is going to work with
A bit. But I don't expect too much code in Enso to use |
Benchmarks seem to be fine. One good result on bankers, @GregoryTravis: |
Pull Request Description
Fixes #10679 by changing the return type of
EqualsXyzNode
s toEqualsAndInfo
. This class holds the result of the comparation as well as any attached warnings.EqualsBuiltinNode
then re-attaches the warnings, if there are any.Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,