News for hackers. Stuff that matters.
Re:The Byte Order Fiasco by foldr on Saturday May 08, 2021 @01:00PM (#27088856)
I see. That does seem helpful once you consider how these types compose, rather than thinking about a one-off conversion. However, I think it would be cleaner to have a library that auto-generated a parser for a given struct paired with an endianness specification, rather than baking the endianness into the types. (Probably this could be achieved by template metaprogramming too.)

There are no comments on this comment yet.