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

I am perfectly fine not having such difference in C++.


I'm not, because of the object slicing problem. Value types and inheritance don't mix well, and the way Rust expresses inheritance with explicit "dyn" traits solves the problem neatly.


That is a point of view, I dislike having to type dyn all over the place, and Impl Something as well, while we are on it.




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

Search: