3 ms·
D is syntactically close to C++, but not C++; Walter Bright made some very judicious choices to make parsing unambiguous and fast. Rust has 4 pointer types, th
by gnuvince 13y ago
D is syntactically close to C++, but not C++; Walter Bright made some very judicious choices to make parsing unambiguous and fast.
Rust has 4 pointer types, three of which you will use regulary. This design decision is in perfect accordance with the goals of the language, offering a language with safety and performance in mind. It takes a while to get used to, but I don't think that makes the language any less clean.
- steveklabnik 13y agoNot just that, but C++ has one pointer type. Oh, and if you're building a big app, you will probably use and have to learn about shared_ptr, uniq_ptr... and then you're right back to Rust with more typing and less guarantees. There are good arguments not to use Rust today, but I think the 'it has four pointers' complaint is a cop-out, personally.
- gnuvince 13y agoMost reasons not to use Rust come down to the implementation (stability of the compiler, speed of the executables, limited standard library), I haven't seen anyone come out and say that something about the language itself is a complete dealbreaker.