3.2 Strings and bytes
| Type | Semantics |
|---|---|
str | immutable UTF-8 string; copying is cheap (shared buffer); indexing by bytes is forbidden, access through chars(), bytes(), slices on character boundaries |
String | mutable string buffer; s.freeze() -> str |
bytes | immutable byte sequence, copying is cheap |
Buffer | mutable byte buffer |
Source: docs/spec/oxl-standard.en.md