On Saturday, 25 July 2015 at 00:49:38 UTC, Walter Bright wrote:
On 7/24/2015 2:27 PM, Tofu Ninja wrote:
No it isn't. Google QueryInterface(). Nobody lists all the
interfaces at the top level functions, which is that Rust
traits and C++ concepts require.
The only time you don't use the right interface for your needs is
if you plan on casting somewhere down the line. But certainly
there are people who don't do that, I for one feel it's bad
practice to need to use casts to circumvent the type system like
that.