'What is the difference between Char and Word8?
The Standard ML Basis Library has a Char structure and a Word8 structure. A Char.char always represents 8 bits and a Word8.word always represents 8 bits. There is a one-to-one mapping between the values of these two types, so why are both needed? It seems rather unnecessary to have to explicitly convert between these two essentially equivalent types by using Byte.byteToChar and Byte.charToByte. A similar situation exists for String.string and Word8Vector.vector.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
