language: closed traits, every case is a type (CLOSED-TRAITS phases 1a, 1b and 2, epic) #713
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#713
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
docs/design/CLOSED-TRAITS.mdis accepted: "phases 1a, 1b and 2 to build; 3 deferred", decided by the owner on 2026-09-28 and 2026-09-29. Atypewithcasemembers is the closed trait, a case is a type of its own, and a case is written bare where the expected type names it, so the leading dot goes. The record says "Nothing of this record is implemented yet", and no issue tracks it.Source
.Caseand.memberare refused after its commit 2), so it has to land before 1.0.Steps (epic: no
readyon this issue).Case, thebare-caselint rule with its fix, messages, completion and highlighting (tier A and tier B)main(the owner's step)torb lint --fix --rule bare-caseover the repository, the checked code blocks of the docs rewritten by a script, the parser refuses.Caseand.member(6.6),ImplicitMemberandImplicitVariantleave the syntax tree, the language pages and the skill updated, the Decision Log entries of 0.1Shape.Circleas a type, widening and the one conversion (section 3),asin a pattern (4.2), members and lookup order (section 5),From<Case>,private caserefused (7.3 rule 5); one commit, then a seed before the compiler's own source uses itstdor the compiler adopts itIoError,OsError,DnsError,UriErrorand theReadErrorofstd/binary, one package round each; needs no feature of this record and may come firstPhase 3 (narrowing,
is) is deferred by the owner and is not a step here.Dependencies
1a-2 waits for the seed of 1a-1. #168 no longer depends on this epic (owner answer
drop).Each step becomes its own issue when it starts next; the design record stays the specification.
[loop:torbscript] re-sweep: filed as homeless work: the accepted record CLOSED-TRAITS.md (phases 1a, 1b and 2 to build) had no issue at all; only #168 referred to phase 1a. Steps follow section 9 of the record. Label
loop; an epic carries noready. Where it sits in ROADMAP.md is not decided here..Case, and thebare-caselint rule (CLOSED-TRAITS 1a-1) #743torb canonalias, and name the formatter's rewrite modules for what they are #751Cleanup audit 2026-11 (#742), what it changes here:
ready). Counted onmaintoday: 11,844.Casesites in 500.trbfiles, 529 in Markdown, 1,027 uses of.member; the record counted about 8,000. The sizes of 9.4 for commit 2 are low by about half.self-name(it writes.Circle(radius)today, #743 changes it),CONCEPT.md:1421(still teaches the leading dot) and the Decision Log entry atCONCEPT.md:2698("a closed trait ... is not planned").stdare not classified by decision 7.3, and two counts drifted.Report: PR #756.