Skip to content

Ceremony audit 2026-11-02: 1757 explicit &x at a &T parameter — the compiler auto-refs; sweep the tree #2939

Closed

Description

@ehartford

From the ceremony audit of 2026-11-02 (Eric: "what other plainly wrong decisions have we implemented").

Verified today with the pinned seed: peek(b) where peek takes &Box compiles with no & (auto-referencing, AGENTS.md "The signature states parameter ownership mode"). The explicit &x at a &T parameter is therefore ceremony the language does not require.

Count (census ref-at-ref-param, typed, from one compilation of src/main.w): src 1752, lib 5.

Why it matters: the compiler is the largest body of With anyone reads; every &x teaches the idiom the mission says is wrong, and the census bar only stops the count rising.

Done when: a mechanical sweep (with fmt section of #2519, or a Lexer-plus-compiler_analyze_file rewrite as tools/migrate_receivers.w does) removes every site where the parameter is &T and the argument is a place; the census bar for ref-at-ref-param reads 0 for src and lib; the remaining spellings are the ones that carry meaning (an & on a temporary, or where the parameter is generic and the choice is real).

Sibling sweeps: move-arg, let-underscore, str-clone (filed alongside). Umbrella: #2519.

Activity

  1. added
    ceremony
    on Nov 2, 2026
  2. added 5 commits that reference this issue on Nov 3, 2026
  3. ehartford commented on Nov 8, 2026

    @ehartford
    ContributorAuthor

    Swept by with fix-ceremony in #3079 (the tool's passes cover this pattern on Sema's facts; the census count fell and the gate holds the new bar). The 165 str clones and 69 shift-count casts the pinned seed still refuses stay until the next seed under #3073.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ceremonylanguage-design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions