-
Notifications
You must be signed in to change notification settings - Fork 131
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
Extend ordering comparisons (< , <=, etc) to Bool & Character #2430
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2430 +/- ##
==========================================
- Coverage 78.52% 78.29% -0.23%
==========================================
Files 315 325 +10
Lines 68655 72464 +3809
==========================================
+ Hits 53908 56737 +2829
- Misses 12942 13644 +702
- Partials 1805 2083 +278
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 26 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
does comparable make sense for Bool ? I don't have much CS background but kind of makes no sense to me. |
I think it is a bit problematic; ( more headache )
basically anything we compare with a constant, should be handled by Some can say maybe it can be useful for sorting array of anystruct or something, but I think gain is minimal there. ( as we will not be able to compare false to 42 for example ) |
@turbolent Thoughts on the above comment? |
Also add tests and documentation
Still need to add tests for the execution logic but opened it up for review for feedback. |
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.
Nice!
Accept suggestion to unnest Co-authored-by: Bastian Müller <bastian@turbolent.com>
Update comment. Co-authored-by: Bastian Müller <bastian@turbolent.com>
Co-authored-by: Bastian Müller <bastian@turbolent.com>
Co-authored-by: Daniel Sainati <sainatidaniel@gmail.com>
Co-authored-by: Daniel Sainati <sainatidaniel@gmail.com>
Co-authored-by: Daniel Sainati <sainatidaniel@gmail.com>
Co-authored-by: Daniel Sainati <sainatidaniel@gmail.com>
…ter comparison in interpreter
…ched types in boolean comparison
Update on the PR:
|
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.
Nice!
@SupunS Could you also please have a look when you have time? Thanks! |
@SupunS Gentle reminder 🙂 |
@dsainati1 Could you also please review the latest changes? |
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.
Looks good! Just one question and a nitpick.
Sorry for taking so long for the review! Appreciate the patience 🙏
Work towards #2276
Description
This PR does the following:
ComparableValue
IsComparable
to the type interfaceIsComparable
method to detemine comparabilityBool
andCharacter
Support for
String
can be done as a follow up.TODOs before this is ready for review:
master
branchFiles changed
in the Github PR explorer