News for hackers. Stuff that matters.
Re:Writing a website in Rust by aswanson on Saturday May 30, 2015 @04:58PM (#9631734)
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.
Re:Writing a website in Rust by milspec on Saturday May 30, 2015 @05:57PM (#9631900)
No, 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.

Re:Writing a website in Rust by aswanson on Saturday May 30, 2015 @06:11PM (#9631953)
But 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.