2 ms·
> But.. this: > `5 + Complex(2, 3)` > should also work. Which requires either scala's `implicit` system or python's take on this, involving `__rplus__`. Th
by Sharlin 8y ago
> But.. this:
> `5 + Complex(2, 3)`
> should also work. Which requires either scala's `implicit` system or python's take on this, involving `__rplus__`. These operations introduce their own complications.
Or the way C++ handles this: being able to define operators as free functions (though you could alternatively define an implicit conversion).