Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on When zero cost abstractions aren't zero cost. Parent comment
type Tiny = u8;
The compiler knows a "Tiny" is just a u8 anyway and exactly the same code is produced.
The wrapper type is a distinct type, which is why you'd want one because it can have different properties from whatever it's wrapping.
There are no comments on this comment yet.
type Tiny = u8;
The compiler knows a "Tiny" is just a u8 anyway and exactly the same code is produced.
The wrapper type is a distinct type, which is why you'd want one because it can have different properties from whatever it's wrapping.