The more I've used the language, I'm starting to think that this decision makes sense in the context of Zig. Common string operations involve allocation, non-constant time access, etc. I can definitely understand how strange that sounds without the rest of the language around it as context, though.
tialaramex|1 year ago
A lot of the Rust string API lives in str, not String.
deagle50|1 year ago