Comparing Rust and D As Better C
Dibyendu Majumdar
mobile at majumdar.org.uk
Tue Dec 15 23:25:02 UTC 2020
I am working on porting a C project to Rust and Better C in order
to get a real world idea of what the differences are.
First impressions of Rust vs D As Better C:
Rust has traits - nothing equivalent in the D As Better C subset.
Another difference is Rust has enumerated types - with D a
library solution is possible.
Rust appears to have a good tooling in VS Code with pretty good
IDE that gives you hints, flags errors as you type code, and
allows you to lookup docs.
I suspect porting the code to D subset will be trivial. Porting
to Rust is at the moment a challenging task (I am trying to
replicate the C code as much as possible, including writing
allocators etc.)
I suspect this project will take some time to complete, but I
hope to share more comparisons of code etc.
More information about the Digitalmars-d
mailing list