Why no signed conversions in binary.ByteOrder?

14 views
Skip to first unread message

a2800276

unread,
5:48 AM (7 hours ago) 5:48 AM
to golang-nuts
Just out of curiosity, does anyone have a good rationale as to why there are only unsigned conversions available `binary.ByteOrder`? It would seem that this functionality is there to avoid dumb careless errors doing byte order conversions, but this design forces me to have to think about whether I can cast uint64 to int64 without loss of precision ...


Reply all
Reply to author
Forward
0 new messages