Message327033
to_bytes and from_bytes aren't remotely related to native primitive types, struct is. If the associated lengths aren't 2, 4 or 8, there is no real correlation with system level primitives, and providing these defaults makes it easy to accidentally write non-portable code.
Providing a default might make sense, but if you do, it should be a fixed default (so output is portable). Making it depend on the system byte order for no real reason aside from "so I can do struct-like things faster in a non-struct way" is not a valid reason to make a behavior both implicit and inconsistent. |
|
Date |
User |
Action |
Args |
2018-10-04 02:39:55 | josh.r | set | recipients:
+ josh.r, alex.henrie |
2018-10-04 02:39:55 | josh.r | set | messageid: <1538620795.56.0.545547206417.issue34889@psf.upfronthosting.co.za> |
2018-10-04 02:39:55 | josh.r | link | issue34889 messages |
2018-10-04 02:39:55 | josh.r | create | |
|