Hacker News new | past | comments | ask | show | jobs | submit login

I expect the special case handling for u8 to also apply to types that are just a strong typedef around u8.



Rust has "typedefs" and those are called type aliases.

The intention of the newtype pattern is to specifically create a new type without the behaviour of the wrapped type, so if there's a special case just for u8, I would expect it not to be on the newtype.


A "strong typedef" is not a typedef.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: