summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 14:11:54 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 14:11:54 +0300
commitc38e792622bd392b09e6ed95a1242015b26f85a2 (patch)
tree441da038b3e728ddb867777878cd2ef75abacbc8 /cmd
parent0710597ccd639c37f4afe6aa3c9081b7229b6066 (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