[rust-dev] &self/&mut self in traits considered harmful(?)

Tommi 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...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140612/804d4c01/attachment.html>

More information about the Rust-dev mailing list