Y
Hacker News
new
|
ask
|
show
|
jobs
by
p-squared
1983 days ago
Maybe Rust makes newtypes _easy_, but certainly C supports similar idioms by way of wrapping data in a unique struct.
1 comments
steveklabnik
1983 days ago
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.
link