3 ms·
Bitfields are evil...the fact that the language designer left them out signals he/they have good taste...I have to get around to trying out Rust.
by aswanson 11y ago
Bitfields are evil...the fact that the language designer left them out signals he/they have good taste...I have to get around to trying out Rust.
- milspec 11y agoNo, ill-defined non-portable C bitfields are evil. If you can specify bit endianness, byte endianness, spans of bytes, and so on... bitfields are mighty nice.
- aswanson 11y agoBut the thing is...the spec is ill-defined in C, and given the fact the C runs on almost any processor, you can't specify endianess in the abstract and pandemonium ensues.