The Duke of Fall :d6: on Nostr: I'm curious as to why Rust guides and examples tend to use i32 for numeric values by ...
I'm curious as to why Rust guides and examples tend to use i32 for numeric values by default when, for most purposes, we're in a 64-bit world. Why aren't folks reaching for i64 first?
I'm likely missing something, and I'd like to know what.
#rust #rustlang
Published at
2024-01-23 00:38:14Event JSON
{
"id": "6f3b4c6de9a9d5f840d452544fe72430cce8ab05f4d7d1c0c6b945751f6a0887",
"pubkey": "3604b6878c9fa01322c5046beaa921a317c469b85ee5cfb1431cf826bfb7a837",
"created_at": 1705970294,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"proxy",
"https://dice.camp/users/valthonis/statuses/111802469225973303",
"activitypub"
]
],
"content": "I'm curious as to why Rust guides and examples tend to use i32 for numeric values by default when, for most purposes, we're in a 64-bit world. Why aren't folks reaching for i64 first?\n\nI'm likely missing something, and I'd like to know what.\n\n#rust #rustlang",
"sig": "5c243a4a2fb7d96f1b325a91c37afae77535fe39cbd714824292b2190ee749d94eb9ef422fa4ee8ab72b0f32cc4fa5ccfcfab21d18a9964091a25c2c4a51edef"
}