plum
git clone https://git.pyrossh.dev/plum
A statically typed, imperative programming language inspired by rust, python
fcca451
— Peter John
2026-11-16T19:14:50+05:30
plan: U2b
docs/plans/2026-11-13-no-globals-tests-ports.md
CHANGED
|
@@ -46,6 +46,7 @@ Decisions (user's answers):
|
|
|
46
46
|
|
|
47
47
|
- **U1 uniqueness fragility** (sl/uniq-filter): a `filter` of a `List<Looping>` anywhere cost Orbit Runner's `PlayingScreen.update` 4 of its 5 in-place spreads; fix the pass, put `Looping.without` back to a `filter`.
|
|
48
48
|
- **U2 screen names** (sl/screen-names): `Screen.name()` defaults to the type's name; navigation by type, `Cmd.goTo<S>()`, a wrong screen is a compile error; games drop `name()`. With it: docs/std.md describes `Dice`.
|
|
49
|
+
- **U2b** (user, 2026-11-16: "make overriding it not allowed and Goto not take a string parameter right just a type"): a screen can't override `name()` (checker error); navigation only by type, `Cmd.goTo<S>()`, no `GoTo(screen: Str)` users can write. Next after U1.
|
|
49
50
|
- **U3 closure/match bugs** (after U1): backlog's closure binder of one name in two match arms ("undefined function"), and the nullary-variant match inside a closure matching every value.
|
|
50
51
|
- **U4 perf** (user, 2026-11-16: "Yes please 1, 2, 3 as others in backlog"), one fresh agent each, after U1+U2, each measured before/after on Orbit Runner, Clockwork and the benchmarks:
|
|
51
52
|
- **U4a typed closures:** a closure struct per signature called with `call_ref` (backlog: `anyref`, two casts and an indirect call per call, two objects per closure); constructor shorthand `OnFrame(Tick)` for a variant passed as a function.
|