Remove menu selector based switch statement in SetLanguage #5
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Activity:Doing
Activity:Proposal
Runner
AT
Runner
CLI
Runner
HTTP
cleanup
devops
easypeasy
exchange
l8ter
legacy
optimization
privilege
refactor
smell
support
tooling
ux
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Depends on
#58 change-language
urdt/ussd
Reference: urdt/ussd#5
Loading…
Reference in New Issue
Block a user
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?
One should never switch on menu selectors in aux code, because the VM code and the aux function will have to be manually synced.
Instead use dedicated VM nodes, and e.g. use the sym name to decide the case. In this case perhaps; setlang_default setlang_swa and string split _ use idx 1.
Does this change work towards solving the code smell?
@carlos yes the whole issue is about the case criteria, they shouldnt be the selectors used for input.
case "default"
for example looks fine.done