3 ms·
> (like array bounds checking, alternatives to pointers, RAII, etc.). Yeah but C++ has all of that, too, as well as a vastly broader ecosystem in the space of
by kllrnohj 8y ago
> (like array bounds checking, alternatives to pointers, RAII, etc.).
Yeah but C++ has all of that, too, as well as a vastly broader ecosystem in the space of non-GC'd, ultra-high-performance languages.
- WalterBright 8y agoC++'s array bounds checking is there only if you use vector<>, not regular arrays.
- kllrnohj 8y agoAnd D's bounds checking is only there if you don't use pointers or @trusted. fyi std::array also has bounds checking, you're not limited to vector<> to have that.
- WalterBright 8y agoD will give you compilation errors in @safe mode if you try to index off of a pointer.