Commit 0130145
committed
feat: enable !-purity by default (error)
This PR makes beagle reject unmarked mutation by default: a strict-mode function whose body mutates (set! or a !-named call) must itself be named with a trailing !, or it is a compile error (E019). Opt down with BEAGLE_PURITY=off|warn. All live consumers and beagle's own corpus are clean at error.
Completes the Phase 6 purity rollout: the engine shipped dark (default off), and is now flipped on after renaming the mutating functions in gjoa and the beagle test corpus to satisfy the rule.1 parent 4e6c2fc commit 0130145
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | | - | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments