Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Iirc you can't chain .into() because the compiler can't be sure whether the first is meant to do the whole conversion and the second is the identity (impl From<T> for T), or if the first does one step and the second the next or if the first is the identity and the second does the whole conversion. (In fact I think the existence of the first and third options alone is enough to preclude chained .into() from working due to the ambiguity.)


You're right.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: