diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 14:11:54 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 14:11:54 +0300 |
| commit | c38e792622bd392b09e6ed95a1242015b26f85a2 (patch) | |
| tree | 441da038b3e728ddb867777878cd2ef75abacbc8 /cmd | |
| parent | 0710597ccd639c37f4afe6aa3c9081b7229b6066 (diff) | |
refactor(repl): extract RPN prefixes to data-driven slice (task uj)
Replace the hardcoded strings.HasPrefix check for "rpn " and "calc "
with a loop over a package-level rpnPrefixes slice. Adding a new prefix
now only requires appending to the slice, satisfying the Open/Closed
Principle.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
