4 ms·
For integer primitives, all possible values are valid. Just allowing binary initialization for structs that consist of integer types would allow compatibility w
by coldnose 5y ago
For integer primitives, all possible values are valid. Just allowing binary initialization for structs that consist of integer types would allow compatibility with C structure. As it is, I have to either resort to unsafe code or manually deserialize every struct
- sophacles 5y agoOh I see, that makes sense. Also there's a sibling reply to yours for a cool looking proposal to do just that if you haven't seen it yet.