News for hackers. Stuff that matters.
Re:The Byte Order Fiasco by sdenton4 on Saturday May 08, 2021 @02:41PM (#27089671)
Every day I spend futzing around with endianness is a day I'm not solving 'real' problems. These things are a distraction and a complete waste of developer time: It should be solved 'once' and only worried about by people specifically looking to improve on the existing solution. If it can't be handled by a library call, there's something really broken in the language.

(imo, both c and cpp are mainly advocated by people suffering from stockholm syndrome.)

Re:The Byte Order Fiasco by jstimpfle on Saturday May 08, 2021 @07:50PM (#27091870)
But that's the point: No one spends a day futzing around with endianness, and there are in fact functions for swapping endianness. You can just call them, no need to hide the swap in a pointer cast expression to a type that has the dereferencing operator overloaded.