[rust-dev] &self/&mut self in traits considered harmful(?)
rusty.gates at icloud.com
Wed Jun 11 14:41:15 PDT 2014
On 2014-06-11, at 21:47, Tommi <rusty.gates at icloud.com> wrote:
> I said `Mul` and similar should do it, i.e. functions that take a variable and return a variable of that same type.
Although, a larger issue of genericity is that multiplication doesn't always return the same type as one of its arguments.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev