3 ms·
> More specifically the newtype pattern is mostly so that you can implement foreign traits on foreign types. For some definition of "mostly". I use most of my
by ReleaseCandidat 3y ago
> More specifically the newtype pattern is mostly so that you can implement foreign traits on foreign types.
For some definition of "mostly".
I use most of my newtypes neither in Rust nor in Haskell to implement traits, but most of the time to declare - newtypes ;) that wrap other (primitive) types.