Scope the step up to drawn rows too, name the format rewrite and what Fake, List and records do, and leave the second-spelling question open
This commit is contained in:
@@ -823,17 +823,16 @@ the Development section below, and who ships a register the four above then draw
|
||||
3. **Valid by construction** — every value passes the check its real consumer
|
||||
applies; facts that belong together come from one draw, within a value and
|
||||
across categories.
|
||||
4. **Templates are intuitive, and text means what it says** — a template, and every
|
||||
path in it, renders what every writer reading it would expect, judged by simulated
|
||||
writers from the Audience.
|
||||
A format renders as written; only `{…}` varies, random characters included
|
||||
4. **Templates are intuitive, and text means what it says** — a template or a path,
|
||||
and every path in a template, renders what every writer reading it would expect,
|
||||
judged by simulated writers from the Audience. A format renders as written; only `{…}` varies, random characters included
|
||||
(`{digits(3)}`), and a selected row, `[SE]`, is that row wherever it is written.
|
||||
Where two writers could expect different outputs, the template is a load error
|
||||
naming a spelling for each. One spelling per result; the wrong one is a load error
|
||||
naming the right one.
|
||||
5. **Every mistake is a load error** — `New` rejects the data and `NewTemplate`
|
||||
the inline template; on a loaded generator `Fake` fails only for an unknown
|
||||
path, `FakeStruct` only for a non-struct argument or a type its tags do not
|
||||
the inline template; on a loaded generator `Fake` fails only for a path that
|
||||
names nothing or could name two things, `FakeStruct` only for a non-struct argument or a type its tags do not
|
||||
describe, with the same error every call, and `Template.Fake` cannot fail at all.
|
||||
6. **Zero to a value in one command** — `go install`, then `fejkdata sv_SE.person`:
|
||||
no checkout, no flag. Flags are GNU-form (`--seed 42`, `-n 3`) in any position;
|
||||
|
||||
Reference in New Issue
Block a user