Y
Hacker News
new
|
ask
|
show
|
jobs
by
kibwen
3400 days ago
Rust doesn't have classes or inheritance. Instead of classes you just have data, and you can give those data types methods via traits, which gives you composition.