Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why is it an issue any more than say, order of fields in a struct is an issue? In one case you read bytes off the disk by doing ((b[0] << 8) | b[1]) (or equivalent), with the order reversed the other way around. Any application-level (say, not a compiler, debugger, etc) program should not even need to know the native byte order, it should only need to know the encoding that the file it’s trying to read used.


> order of fields in a struct

This is defined in C to be the order the fields are declared in.


But the padding rules between fields are a mess.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: