Issue #2567: The compiler’s and std’s own sources drop ref and write keep (views-3 migration of crates/nikaia-std)

Open and answer this issue on GitHub.

ready · opened 2026-11-21 · updated 2026-11-21 · 0 comments

Part of #1213 Needs #1254

What it is

ADR-views-3 (now ADR-views-v4 D4) takes ref out of the language outside extern "C"; nikaia migrate views-3 (763bf9e4) writes keep from the ledger, drops ref and rewrites the self forms. The examples, the guide and twelve language test files are migrated (c29a3674, b529b5da), but the compiler’s and std’s own .nika sources still write ref (on 2026-11-21, bounds_walk.nika alone holds about 800 ref forms; ref String parameters get the warning NK1261). The tool’s open defects for type forms (ref Array[T], ref Bytes, Vec[ref String], function types) are #1254’s. Was #1213 item 6, the crates/nikaia-std half.

To build

  1. Run nikaia migrate views-3 over crates/nikaia-std (the compiler’s .nika, the std .nika), fix by hand only what #1254 left, lower-std and its fixpoint; the touched tests’ expected outputs follow. A file the tool still gets wrong stays unmigrated and is named in the report with its probe.

Done when

No .nika file under crates/nikaia-std writes ref outside extern "C" (or each one left is named with its reason in the report), lower-std and its fixpoint hold, and the touched tests pass; the commit carries Fixes #N for this issue, and the report gives a Found: line per finding.

Split from #1213 by Claude Code

Back to Open Issues