|
|
|
|
|
by nwah1
2757 days ago
|
|
D had a closed source reference compiler for a long time, and didn't have any major backers. Rust had Mozilla backing early, and was fully open and transparent in terms of community feedback, and wasn't just making a language that had high level features, but was pioneering a new category of language that added tons of safety guarantees at compile time by default using a new paradigm of enforcing borrowing and ownership. These safety guarantees are not just in regards to memory safety, but also in regards to data races. D seems to allow memory safety guarantees, but not by default, and I believe it is enforced at runtime not compiletime. So Rust was at once more accessible and more exciting. |
|
D's compile time memory safety focusses on:
1. @safe and @system code
2. disallowing unsafe pointer operations
3. safe alternatives to pointers
4. controlling escaping of pointers
5. controlling the scope of addresses