refactor: Extract stack effects from hardcoded match statement to data structure #208
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#208
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
crates/repl/src/app.rscontains a 214-line functionget_word_effect()(lines 1022-1236) with 100+ match arms, each defining stack effects in nearly identical patterns:Impact
Proposed Solution
Option 1: Declarative macro
Option 2: External data file (TOML/JSON)
Option 3: Build-time generation
Generate from compiler's builtin definitions to ensure single source of truth.
Files Affected
crates/repl/src/app.rs(lines 1022-1236)crates/repl/src/effects.rsor data fileAcceptance Criteria
Labels
refactor, technical-debt, critical
https://github.com/navicore/patch-seq/pull/216