Say how the copy is rejected for a value and for prose

This commit was merged in pull request #65.
This commit is contained in:
2026-09-26 15:11:32 +02:00
parent 7122e69785
commit 0ccbfa4a3b
+1 -1
View File
@@ -46,7 +46,7 @@ Apply it as a question to any design that routes A through B, or has A reach int
- When two spellings reach the same result, make one work and reject the other. Supporting both needs a stated reason, written down.
- Reject the redundant spelling as early as possible — at load, parse or compile, not at use — and have the error name the spelling to use instead: `token {p} renders a level that {p.first} reads a path into; name the fields you want instead`.
- Where the two spellings can *disagree*, this is a correctness rule. A caveat in the README does not close it.
- One spelling in two places is the same case: the copies can disagree just as two spellings can. Reject the copy and name the place that keeps it.
- One spelling in two places is two spellings: reject the copy — at load for a value, by deletion for prose — and name the place that keeps it.
- Applies to data formats, config, CLI flags, public APIs and prose alike.
## Working loop