I understand what an int is and that it can vary depending on the system. However, it's not clear to me (besides the obvious cases where only an int64 will suffice) which I should favour, and in which situations I should use one or the other.
For example:
- I have a list of objects (currently 4k), but likely to grow. Should I use an int or an int64 for the (sequential) IDs?
- I want to store the order of s few thousand items. Do I store the ordinal value of an item as an int or int64?
I can see arguments both ways, but I'd like feedback on what the idiomatic preference is, and hopefully a little explanation of why.