3 ms·
The real problem is that hashes as strings is wrong. Hashes are typically numbers. Do you store people's ages as hex strings?
by treflop 2y ago
The real problem is that hashes as strings is wrong.
Hashes are typically numbers.
Do you store people's ages as hex strings?
- mattstir 2y ago> Hashes are typically numbers If we want to get really pedantic, hashes are typically sequences of bytes, not a single number, so really `UInt8Array` is obviously the best choice here. It wouldn't fix the whole "getting arguments with the same types swapped around" issue though. Without named parameters, you have to pull out some hacks involving destructuring objects or branded types like these.