a2800276 <
a280...@gmail.com> wrote:
> I agree it has no technical merit. It can't do better, but it avoid having
> to think about the type mismatch. The functionality provided by ByteOrder
> is fairly simple to begin with, I assume its whole purpose is to reduce
> cognitive load/avoid dumb mistakes. My assumption is that it's probably not
> immediately obvious to everyone whether `a := int64(unsigned_value)` never
> loses precision or never reinterprets/reorders the physical value of the
> bytes. At least I had to stop and think about it and the benefit of a
> things like ByteOrder would be not having to think :) Then again, I'm not
> particularly bright.
>
overflows. This may help with dumb mistakes if it's easy to switch to its