|
|
|
|
|
by rat87
5074 days ago
|
|
In python you can overload + and a lot of other numeric operators by implementing certain methods __add__ for +, see others here: http://docs.python.org/reference/datamodel.html#emulating-nu... In ruby you can implement certain numerical methods including + In smalltalk + is a binary method, you can give your methods all sort of symbol names. Same with Scala I think. |
|