rust reaction to walter's talk on interfacing to C++
Jonathan M Davis via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 22 04:00:44 PDT 2016
On Tuesday, 22 March 2016 at 08:52:23 UTC, Laeeth Isharc wrote:
> Rust has two advantages I can think of: it doesn't have the
> struct/class split that D does, and it has non-transitive *mut
> and *const (at least, I don't think they're transitive in Rust).
That's funny. I would have said that those were _advantages_ for
D. D's constness can certainly be unwieldy (some sort of
equivalent to C++ mutable would be a very welcome addition if we
could pull it off), but whatever flaws D's const may have, the
transitivity is a huge plus overall IMHO, and I would have said
that the struct/class split was a huge win. It properly
segregates the inheritance stuff to reference types while not
forcing all user-defined types of any complexity to be reference
types.
So, while I'm quite sure that Rust has advantages over D, I would
not have listed those among them.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list