Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lmm
on March 14, 2023
|
parent
|
context
|
favorite
| on:
Switching from C++ to Rust
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: