On 12-07-26 12:52 PM, Gareth Smith wrote:

One way to change this code would be to make the impl for &fat rather
than for fat, and change x's expression to &fat(). Luckily this also
seems to allow calling methods on @fat and ~fat types. Is this a
reasonable way to migrate the code? Are their alternatives?

I'm not clear to me what the state of this machinery is. It sounds reasonable to me but I recall there being a bunch of subtle wrinkles to it, and it's possible that it will automatically borrow a &fat when presented with a @fat.

I suspect one of Lindsey, Tim, Niko or Patrick can answer this better than me.

-Graydon


_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to