Re:Switching from C++ to Rust
by lmm on Tuesday March 14, 2023 @02:09AM
(#35147955)
You definitely want an integer to always be an integer, but you often want to represent "A or B". E.g. user has a contact method that's a phone number or an email address. Result of validation is a validated value or a failure message.
[ Parent
| on HN ]
There are no comments on this comment yet.