4 ms·
> 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 obvio
by 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.