Skip to content

Commit 16ee5bb

Browse files
cknittclaude
andcommitted
Document runtime annotations in the untagged variants spec
Why: The spec states the rules the compiler implements, and its open questions asked what a mechanism for declaring classes and kinds on types has to decide. Rule 5 now describes `@instanceOf` and `@typeOf`: where they can appear, how they are read along a chain of abbreviations, which abbreviations and class paths are rejected, and the name list that still covers types without annotations. Rules 4, 6, 8, 10, 12, 13 and 14 gain what the annotations change: declared kinds, one case per class and per symbol, subclass and function exclusions, missing classes, implied never-undefined, and inclusion checks. The open questions become the decisions taken, with what is still open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fc7LEuyEfynjaKCVEBPmTF Signed-off-by: Christoph Knittel <ck@cca.io>
1 parent 6c353bb commit 16ee5bb

1 file changed

Lines changed: 166 additions & 69 deletions

File tree

0 commit comments

Comments
 (0)