What are the plans for improving Rust’s operator overloading? Specifically in comparison to D’s?
I’m thinking especially in terms of
- overloading all unary/binary operators in one go: overloading index unary operators and
- (multi-dimensional) slice operator overloading
Further, is there a Rust equivalent of D’s alias this?
These two together makes it very convenient (little code) to create a wrapper type around existing types, that changes only a small amount of the interface. Useful for instance when defining bounded numeric types.