Why doesn’t Ruby support method overloading?

Technology CommunityCategory: RubyWhy doesn’t Ruby support method overloading?
VietMX Staff asked 3 years ago

Overloading is a term that simply doesn’t even make sense in Ruby. It is basically a synonym for “static argument-based dispatch”, but Ruby doesn’t have static dispatch at all. So, the reason why Ruby doesn’t support static dispatch based on the arguments, is because it doesn’t support static dispatch, period. It doesn’t support static dispatch of any kind, whether argument-based or otherwise.