From 8b5ed36bcac8dea23f5275a1eeb4ec216949123d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 12:18:46 +0200 Subject: [PATCH] Read a bare number or boolean template as a format string, in the padded-JSON decision --- docs/decisions.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/decisions.md b/docs/decisions.md index cbb7f73..2072c37 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -117,8 +117,10 @@ until item 129: it reads a path, and only the data is absent. 2026-10-07, Lilleman auf Larv. Applies KISS. Padding is where the two readings disagree: a format string renders it, JSON drops it. A -template that parses as JSON is its JSON, so its padding is dropped, as `encoding/json` -drops it. Goal 5.7 loads it: it is well-formed and means one thing. +template that parses as a JSON object, array, string or `null` is its JSON, so its padding +is dropped, as `encoding/json` drops it. A bare number or boolean gains nothing from the +JSON reading, so it is a format string, and `echo 42` prints its newline as `echo x` does +(goal 5.1). ## A JSON string stays a template even where its bare text renders alike