Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bonzini
20 hours ago
|
parent
|
context
|
favorite
| on:
What would it take to add refinement types to Rust...
Is the former different from a hypothetical Result::Err type (I don't know if you'd spell that Result::Err<T> or Result::<T>::Err)?
n_plus_1_acc
20 hours ago
|
next
[–]
Different solutions to the same problem. Pattern types are more general than enum variant types.
reply
JoshTriplett
20 hours ago
|
prev
[–]
Same concept, but generalized to any type, not just enums.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: