Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Comparable and spaceship operator behavior changing #784
If Comparable is included then <=> is used for comparisons. Currently ruby eats any exceptions thrown by <=> but this is changing in the future and it outputs warnings like this.
warning: Comparable#== will no more rescue exceptions of # in the next release.
Related Ruby bug report:
The <=> operator in structure_item.rb and json_rpc.rb should be updated to ensure that they don't raise exceptions for cases such as comparing against nil or with objects that don't support an expected method.