From fa76d709134070b932ffa634fc1474444fa65cf5 Mon Sep 17 00:00:00 2001 From: hyperpolymath <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 18 May 2026 18:02:00 +0100 Subject: [PATCH] fix(affine): migrate record literals to #{ } (affinescript#218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AffineScript moved bare `{` in expression position to mean a block; record/struct literals now use the `#{ … }` sigil (affinescript#218, merged). Migrated the 4 expression-position record literals in panll_gui.affine (panll_init return + 3 panll_update match-arm Model constructions). Record *patterns* (match `{ current_pane: c, ... } =>`) and blocks are unchanged. Parses clean under the new compiler. Refs hyperpolymath/affinescript#218 Co-Authored-By: Claude Opus 4.7 (1M context) --- src/ui/tea/panll_gui.affine | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/tea/panll_gui.affine b/src/ui/tea/panll_gui.affine index 16b2d0d..0ce5aa1 100644 --- a/src/ui/tea/panll_gui.affine +++ b/src/ui/tea/panll_gui.affine @@ -41,7 +41,7 @@ enum Msg { * Initial state: PaneW (Task Barycentre) with no history. */ fn panll_init() -> Model { - { + #{ current_pane: PanLLPane::PaneW, history_depth: 0 } @@ -58,7 +58,7 @@ fn panll_update(@linear msg: Msg, @linear model: Model) -> Model { match msg { Navigate(new_pane) => { // Consume old model, produce new model with incremented history depth - { + #{ current_pane: new_pane, history_depth: h + 1 } @@ -67,13 +67,13 @@ fn panll_update(@linear msg: Msg, @linear model: Model) -> Model { PopState => { if h > 0 { // Return to PaneW if stack has items - { + #{ current_pane: PanLLPane::PaneW, history_depth: h - 1 } } else { // No-op transition: return model as-is - { + #{ current_pane: c, history_depth: 0 }