I am completely certain that if I proposed deref coercions today there would be a crowd up in arms about how important it is that they know that the address-of and period operators don't run arbitrary code.
-
-
No (but people were up in arms about that!). Its the much older feature that lets you call `.len()` on a Vec even though `.len` is a method on slice, instead of having to do `vec[].as_slice().len()`
-
Its also the reason we don't have `foo->bar` like you see in C. We automatically dereference types to find their methods, including possibly running user-defined code in Deref impls.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.