docs(book): std prelude and core #654
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/638-std-prelude-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #638
Summary
Adds the Std pages
book/std/core.md(std/core: Option, Result and?, error conversion withFrom,Error, operator traits, ranges,Array/Buffer, target types,do/unless/retry) andbook/std/prelude.md(std/prelude: what is in scope without an import, values versus capabilities with atrb errorexample, prelude names are the same types as their sources, choosing another prelude inproject.trb). Both arekind: page,status: stable, in the shape ofbook/std/json.md;book/std/index.mdlists them.How verified
torbfirst; its output is what is pasted.torb run compiler/src/main.trb docs check book --no-native(44 pages, 245 snippets, no problems),docs index --check book(up to date),docs site book --check(no broken link). No C compiler on this host, hence--no-native; CI runs the native path.tools/gates.shruns in forge CI.Old pages
docs/standard-library/prelude.mdanddocs/standard-library/core.mdare kept, unpublished: the skilltorbscript-standard-librarycarries the wholestandard-library/directory (<!-- carry: standard-library/ ... -->) and its references are generated from these pages, as forjson.mdandfs.mdbefore. Deleting them would remove the package references the skill relies on. No docs page and no skill changed, sodocs skill --checkis unaffected.Approved. Checklist for
16f6677:book/std/core.md,book/std/prelude.md, generated index block inbook/std/index.md); no other page touched.page,status: stable,package: std/core/std/prelude, in the shape ofjson.md; pdisc green.trb run/trb errorblock is followed by an output block.docs/standard-library/{core,prelude}.mdare kept unpublished and the PR body names the skill that carries them (torbscript-standard-library), as the acceptance criteria allow.Non-blocking:
core.mdsays "an operating system added later" (history-style word); consider rewording.Merging by rebase (linear history).