Make the names prose true of the code and readable on one pass, and state each refusal once

This commit is contained in:
2026-10-03 12:23:21 +02:00
committed by Lillem4n
parent 32124c5b1e
commit 62214370ed
10 changed files with 55 additions and 71 deletions
+4 -4
View File
@@ -4,8 +4,8 @@ import "strings"
// drawMemo is what a hold, a draw group or a named pick has drawn: the variant each level was
// drawn as, so every path under it reads one variant; the value each read produced, by its path,
// so the same read written twice reads one value; and the frame of each name scope a read
// entered past its owner.
// so the same read written twice reads one value; and the frames a read opens for the name
// scopes around where it lands (enter).
type drawMemo struct {
variant map[string]node
value map[string]readValue
@@ -48,8 +48,8 @@ type renderScope struct {
// base is the depth of the frame stack when the read rendering the category entered it,
// below which no frame is the category's.
base int
// pick is the named pick what renders is part of, at pickKey, its path from the name; nil
// outside one.
// pick is the named pick being rendered, nil outside one; pickKey is the path from the name
// to what renders.
pick *namedPick
pickKey string
}