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

Ah, sorry; I forgot that `as` let you cast bigger types to smaller types. Yeah, that does make the tragically verbose `.into()` the safer option, unless you know that the type you're casting into will always be bigger.


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

Search: