Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
p-squared
on Jan 17, 2021
|
parent
|
context
|
favorite
| on:
Would Rust Secure Curl?
Maybe Rust makes newtypes _easy_, but certainly C supports similar idioms by way of wrapping data in a unique struct.
steveklabnik
on Jan 17, 2021
[–]
The only significant difference is that you have to give the inner value a name in C, but you don't in Rust. It's a pretty marginal advantage.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: