plum
git clone https://git.pyrossh.dev/plum
A statically typed, imperative programming language inspired by rust, python
bd87167
— Peter John
2026-11-02T11:45:17+05:30
docs: Buffer stays as the string builder
docs/plans/2026-11-02-go-slices.review.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
- **`List[T]`** stays the one growable, shared, mutable sequence type, with its API unchanged.
|
|
9
9
|
- **`xs.slice(i, j)`** returns a `List[T]` *view* over the same backing array: one small record, no element copy.
|
|
10
10
|
- **`Str`** gets the same layout, so `sub`, `slice`, `trim` and `split` stop copying bytes.
|
|
11
|
-
- **`Buffer`**
|
|
11
|
+
- **`Buffer`** stays as the string builder, now on `Array[Byte]`, and **`ByteSlice`** is removed.
|
|
12
12
|
|
|
13
13
|
```plum
|
|
14
14
|
ys := xs.slice(1, 3) # view: no copy
|