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

Sebastian Gesemann s.gesemann at gmail.com
Wed Jun 11 07:10:14 PDT 2014

On Wed, Jun 11, 2014 at 3:27 PM, SiegeLord wrote:
> [...] Along the same lines, it is not immediately obvious
> to me how to extend this lazy evaluation idea to something like num::BigInt.
> So far, it seems like lazy evaluation will force dynamic dispatch in that
> case which is a big shame (i.e. you'd store the operations in one array,
> arguments in another and then play them back at the assignment time).

I havn't tried something like expression templates in Rust yet. How
did you come to the conclusion that it would require dynamic dispatch?

More information about the Rust-dev mailing list