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.
The text was updated successfully, but these errors were encountered: