[Feature Request] Use unsigned bytes for String's buffer #420
Labels
enhancement
New feature or request
mojo
Issues that are related to mojo
mojo-repo
Tag all issues with this label
mojo-stdlib
Tag for issues related to standard library
Review Mojo's priorities
What is your request?
Right now, String's data is stored as
DynamicVector[Int8]
, but it should likely beDynamicVector[UInt8]
.What is your motivation for this change?
Signed bytes tend to make users think semantically that they are working with numbers rather than raw data. It's also become increasingly popular to describe raw bytes as just a Vector of unsigned bytes (such as Uint8Array in JavaScript or []const u8 in Zig).
The text was updated successfully, but these errors were encountered: