Say one spelling in two places is the same case, its copy rejected by naming the place that keeps it #65

Merged
lilleman merged 2 commits from one-spelling-two-places into main 2026-09-26 15:11:51 +02:00
Showing only changes of commit 0ccbfa4a3b - Show all commits
+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