Re:Go 2, here we come
by joppy on Thursday November 29, 2018 @07:01PM
(#18565378)
I think the question though is that if “int” were an actual integer, would you still default to using int32/int64, and for what reason? There are valid uses for fixed-width types, but beyond domain-specific number crunching (crypto, image processing, etc) I would argue that the use of these types is technically incorrect, and not what people expect. Even experienced programmers will see “x > x + 1” and mentally replace that with “true”, even though if x is fixed-width, the value of that expression actually depends on x.
[ Parent
| on HN ]
There are no comments on this comment yet.