Is D better than C++ for many things, including teaching? Definitely. It is a nice language that produces fast programs and is nice to read. It's also very good as a scripting language that can be compiled on demand with rdmd.
But I have to admit that I have been spoiled by Rust. D still blows Rust out of the water when you just want to write a "script" do to some small standalone task very efficiently (with rdmd), but for writing more complex programs Rust's type system feels much nicer.
But I have to admit that I have been spoiled by Rust. D still blows Rust out of the water when you just want to write a "script" do to some small standalone task very efficiently (with rdmd), but for writing more complex programs Rust's type system feels much nicer.