Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
demurgos
58 days ago
|
parent
|
context
|
favorite
| on:
What would it take to add refinement types to Rust...
Yes, it's the standard way if you want implicit compat with the base type, so you can pass a value of type `A` to a function expecting a `string`. An other name for this pattern is "branded types".
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: