Why there’s no operator overloading in ruby?

Flaws in Ruby

I am not against “method overloading”, but it very easily leads to optional static typing in the language, which changes the language very drastically, since you need to specify “type” to overload arguments. Without well-thought design, it can “destroy” the language and its culture. I have not yet got that well-thought design of method overloading. – matz

dynamic typing을 위한 어쩔 수 없는 선택이었다는 거군요. 이에대한 해결책은 varargs를 사용하는 것입니다.

Similar Posts:

Post a Comment

Your email is never published nor shared.