Skip to content

Clone instead of Copy on Radio's value? #862

Answered by hecrj
itytophile asked this question in Q&A
Discussion options

You must be logged in to vote

The main reason is that I believe it's better to rely on enum values for these kinds of widgets, instead of using strings both for the value and the label.

Besides being cheaper, it should also be easier to pattern match when you get a Message with the selected value.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@itytophile
Comment options

Answer selected by hecrj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #850 on May 04, 2021 08:01.