Commit d0654d4
#135 slice 6 — keyword-as-identifier. Two stdlib externs/fns were named
with reserved keywords and could not parse in fn-name position:
- result.affine `fn try<T>` — `try` is the try/catch/finally keyword
-> renamed `attempt` (its body still uses the real `try { } catch`).
- effects.affine `extern fn ref<T>` — `ref` is the ownership keyword
-> renamed `make_ref`.
Pure stdlib rename — zero grammar/compiler change, zero risk. No other
stdlib file referenced the old names (verified). Both files now clear
the parse wall and advance to deeper, distinct later-slice defects
(result -> empty-array `(T,Int)` family = slice 7; effects -> generic-
extern kind-checking, separate). Resolve-at-source via rename was the
recommended option in the triage doc (local + safe vs a broad
contextual-keyword grammar change).
Advances #135. Refs #128, #135.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 24379f9 commit d0654d4
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
230 | 232 | | |
231 | 233 | | |
232 | 234 | | |
| |||
0 commit comments