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

Object inheritance is only useful in rare edge cases so your statement doesn't make much sense. Traits have default methods, inheritance and can be used as bounds on generics (no dynamic dispatch, type not lost) or as objects (dynamic dispatch / type erasure).

What makes you think object inheritance is such a sure thing anyway? I don't expect either object inheritance or optional garbage collection to materialize, ever. In fact, I'd be pretty sad if the language was degraded with that extra complexity - I think it would be a worse situation than the mess that is C++. There would no longer be a shared idiomatic Rust.



I think optional garbage collection might materialize, but I would imagine it would end up being a third-party library.




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

Search: