|
|
|
|
|
by wavemode
130 days ago
|
|
I'm envisioning that in Rust (and Python), the operator overload would be on a class/struct. It would be the macro/decorator (the same one that adds logging) which would turn the function definition into an object that implements Fn. |
|
Whether it is a good idea to use it is another matter (it does not feel Pythonic), but it is easy to implement.