Concept
- Text exposes common members such as len, upper and lower.
- Keeping Bytes separate prevents arbitrary binary data from pretending to be text.
Example
text = "Hello"
say text.len
say text.upper
say text.lower
data = bytes "hello"
say data.lenText and binary-safe Bytes are separate value families.
text = "Hello"
say text.len
say text.upper
say text.lower
data = bytes "hello"
say data.len