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

Basically you have the choice of adding a tiny bit of boilerplate in the caller, having monomorphization bloat, or adding lots of boilerplate to the callee.

In general I'm with you: just stick the .into() in the caller.

But this is pub std code, expected to be called from many many places, so they probably made the right choice to make it more convenient to call.



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

Search: