Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust implements interface inheritance out of the box via traits, but you can also replicate something very much like implementation inheritance via phantom types/the typestate pattern. It just finds very little use in general, because it's readily apparent just how clunky that whole arrangement is.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: