Hmm, when there's an enum (MyEnum) that has a possible empty variant, how would you prefer to encode this? I feel there's pros / cons to both approaches; not sure which is better.
-
-
Replying to @yoshuawuyts
It depends if there are uses where the empty variant is invalid or not
1 reply 0 retweets 4 likes -
Replying to @withoutboats
In this case the empty variant would be valid. So I'm guessing encoding None as a member would work best for that?
1 reply 0 retweets 1 like -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.