On 2013-11-20, at 1:40, Benjamin Striegel <[email protected]> wrote:

> If autoref still happens on methods, does this mean that you'd be able to get 
> around the need to do:
> 
>     sort(&mut *foo);
> 
> ...by turning it into a method?
> 
>     foo.sort();

I like how your argument nudges this whole discussion a few inches to the left. 
Now we see that disallowing auto-borrowing from regular function arguments 
doesn't buy us anything unless we also disallow it from the target of method 
invocation syntax (dot notation). And that's obviously assuming the upcoming 
UFCS feature. I doubt that anyone would like to be writing 
(&*foo).call_method() all day long.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to