Re:Implement with Types, Not Your Brain
by dodobirdlord on Wednesday June 26, 2019 @10:16PM
(#20291203)
But that's exactly my point. Why would something that is a randomization seed have type "String"? Why would a hash have type "String"? Why not type Seed and type Hash?
A type signature of Seed -> String -> Hash is pretty enlightening!
A type signature of Seed -> String -> Hash is pretty enlightening!