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

Not exactly. For example, in Rust, you can do unions for traits: https://play.rust-lang.org/?version=stable&mode=debug&editio.... OCaml has the same system for its objects, where objects are structurally typed.


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

Search: