Re:Ask HN: Will Rust ever become a mainstream systems progra...
by pcwalton on Monday April 10, 2017 @06:05PM
(#14082959)
Only if you monomorphize interfaces—which gives you Rust's traits.
[ Parent
| on HN ]
Re:Ask HN: Will Rust ever become a mainstream systems progra...
by soulbadguy on Monday April 10, 2017 @08:46PM
(#14083928)
No. THe fundamental difference is that rust traits cannot convey structural information , classes (java and c++ can)
Re:Ask HN: Will Rust ever become a mainstream systems progra...
by steveklabnik on Monday April 10, 2017 @09:04PM
(#14084028)
There's an open (and desired) RFC for this. It's not likely to happen soon since it's not a super high priority, but I'd be willing to bet it gets merged in the future.
Re:Ask HN: Will Rust ever become a mainstream systems progra...
by soulbadguy on Tuesday April 11, 2017 @12:34PM
(#14089725)
Fair enough, as long as we agree that classes/struct in C++/java a quite a different beast than just monomorphic traits.
Re:Ask HN: Will Rust ever become a mainstream systems progra...
by steveklabnik on Tuesday April 11, 2017 @12:47PM
(#14089871)
Absolutely, you're totally right with regards to today.