doc: document the public constructs of std/ — prelude and core #312
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Context
Part of #31 (218 public constructs of
std/without a doc comment). Slice 1 of the documentation work; the list of what is missing comes from #311 (torb doc --check), until then fromtorb doc std --json(items withrequiredand nodoc).Source
torb docand tooling/torb-doc.md, "What--checkdoes not fail on"; standard:compiler/CONTRIBUTING.md(doc comments)Goal
Every required public construct of the modules below has a doc comment that meets the standard of
compiler/CONTRIBUTING.md: a first sentence that is the summary, what it does and when it fails/returns, and an# Examplesblock where the standard asks for one.Modules
std/prelude,std/coreEstimate from source (public declarations whose line above is not a doc comment; the exact numbers are in the list): ~55 (prelude 39, core 16). Where a module turns out to hold no required construct (e.g. plain re-exports), nothing is to be done for it.
Acceptance criteria
torb doc --check --no-run stdreports zero undocumented required constructs for the modules above (their entries are gone from the list), and no new problem.torb format --checkclean on every touched file.// checkor// skipfirst line, the reason is given.Touches the seed?
No. Doc comments are comments; no syntax change, native, driver flag or std name looked up by the compiler. The doc examples in the new comments are type checked by the existing gate
doc --check --no-run std.Size
One PR, one Conventional Commit
docs(std): document <modules>. Sonnet/medium. Independent of the other documentation slices (disjoint modules).torb doc --checkfail on a public construct without a doc comment #317torb doc --checkfail #31[loop:torbscript] refine: slice of #31 refined with the umbrella's decided-by-the-loop comment (disjoint std/ module group, doc comments only, one PR, no seed impact); #311 landed so the exact list is available via
torb doc --check.ready, next: implement.[loop:torbscript] claim implement by session:loop-torbscript-20261012 until 2026-10-12T14:05Z
[loop:torbscript] implement: no PR. The slice has nothing left to document: the "~55" estimate counted the
public usere-export lines ofstd/prelude(39) andstd/core(16), which are not constructs (a package is documented by the constructs its entry exports, each shown in the module that declares it). Measured with the 2026-10-11 nightlytorb doc std --jsonagainst thebd762113checkout (includes Buffer, Plain, the browser targets): 191 required constructs instd/core+std/prelude, 0 without a doc comment, and every file of both has a module comment. No branch pushed, no diff. Suggest closing #312 as already satisfied; #317 (flip--check) loses this slice as a dependency. Token usage: ~110k. next: waiting (nothing to implement, close or re-scope decision for the next tick)[loop:torbscript] close: acceptance already satisfied (191 required constructs in std/core + std/prelude, 0 without doc comment, measured at
bd762113); no PR needed. Closing as satisfied; #317 no longer waits on this slice.