Obligatory link to Niko's blog post on this topic:
http://smallcultfollowing.com/babysteps/blog/2013/11/20/parameter-coercion-in-rust/

I do agree that explicitness is nice, but too much noise will harm
readability just as much as magic does.

It also doesn't help that the `&*` operator is a bit misleading: it
visually implies a deref that never actually occurs. Could lead to people
naively avoiding borrowing if they think it incurs the cost of a deref, and
just writing APIs to take owned pointers directly.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to