3 ms·
> Integer numbers are typically represented by the type Int, which represents a machine-size integer (usually 64 bits on modern computers). I'm not a systems p
by jcparkyn 3y ago
> Integer numbers are typically represented by the type Int, which represents a machine-size integer (usually 64 bits on modern computers).
I'm not a systems programmer, but I thought there was a consensus these days that this was a Bad Idea™? Are the benefits of marginally better performance on certain platforms really worth having your program break due to an overflow when you run it on a different platform?
- Mathnerd314 3y agoZig has both fixed size types and a native-pointer-sized type. I think it's the right approach, in general you need both.