3 ms·
(Ruby) Introduce defp keyword for defining overloadable, pattern matched methods
- Alifatisk 3y agoHmmm, why isn't the case..in enough?
- graypegg 3y agoWouldn’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.