Refactor command parsing to use TryFrom? #66

Closed
opened 2021-05-22 14:57:34 +00:00 by projectmoon · 0 comments
Owner

Instead of having one giant file that can convert text into all commands, implement TryFrom<String> / TryFrom<&str> on each command, adjacent to the rest of the code for the command. Command parser code simply keeps the match statement, with a try_from call.

Instead of having one giant file that can convert text into all commands, implement `TryFrom<String>` / `TryFrom<&str>` on each command, adjacent to the rest of the code for the command. Command parser code simply keeps the match statement, with a `try_from` call.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: projectmoon/tenebrous-dicebot#66
No description provided.