This makes sure that eql? and respond_to? with changed arity in dry-logic will work as expected, so that we don't have to go through deprecation and renaming of these predicates.
For context - it turned out that some tools that inspect all runtime objects rely on eql? or respond_to?, which means that Dry::Logic::Predicates module which has its own implementation of these methods broke such tools. To fix it, we've made the predicates compatible with the default Object#eql? and Object#respond_to? behavior.
This makes sure that
eql?
andrespond_to?
with changed arity in dry-logic will work as expected, so that we don't have to go through deprecation and renaming of these predicates.For context - it turned out that some tools that inspect all runtime objects rely on
eql?
orrespond_to?
, which means thatDry::Logic::Predicates
module which has its own implementation of these methods broke such tools. To fix it, we've made the predicates compatible with the defaultObject#eql?
andObject#respond_to?
behavior.