3 ms·
Wouldn’t overloadable methods be a massive change to how Ruby resolves methods right now? You can’t have two methods with the same name indexed by arity for exa
by graypegg 3y ago
Wouldn’t overloadable methods be a massive change to how Ruby resolves methods right now? You can’t have two methods with the same name indexed by arity for example. And how would this work with reflection/metaprogramming methods like responds_to? ? This would make the classes of the arguments passed into it relevant to whether or not a method responds from an object.