diff options
| author | Cliff Click <cliffc@acm.org> | 2026-09-19 19:36:53 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-09-19 19:36:53 -0700 |
| commit | fa53d25edf55219c5725fbe49dc05442a5d97dea (patch) | |
| tree | 6fca7d85d0cc9c92dcde17ed37b0d63ca344fde4 /skills | |
| parent | a8c96e04c59d37fe561319e86474f55c497705bb (diff) | |
| download | Simple-fa53d25edf55219c5725fbe49dc05442a5d97dea.tar.gz Simple-fa53d25edf55219c5725fbe49dc05442a5d97dea.zip | |
Use isDead() instead of checking null inputs
Diffstat (limited to 'skills')
| -rw-r--r-- | skills/chapter25-codex-notes.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/skills/chapter25-codex-notes.md b/skills/chapter25-codex-notes.md index ab16e8ee..0bb324ac 100644 --- a/skills/chapter25-codex-notes.md +++ b/skills/chapter25-codex-notes.md @@ -216,6 +216,10 @@ Consequences: ## Side-effect-free diagnostics: B09 lessons +- `Node._inputs` remains allocated after `kill()`. Use `isDead()` when printing + or filtering dead nodes; an empty input array alone does not imply death. + Bounds-safe edge inspection only needs null-node and input-count checks. + - Type construction and interning are allowed during printing. Do not add alternate linker-key comparisons or other machinery merely to avoid interning; canonical types and fast identity comparisons are normal type-system operations. |
