Reasons to use D (over alternatives like Rust)

Walter Bright newshound2 at digitalmars.com
Wed Feb 5 05:32:42 UTC 2020


On 2/4/2020 11:57 AM, RaycatWhoDat wrote:
> Hi.
> 
> Disclaimer: This thread isn't specifically a "this vs. that" thread but more of 
> a "help me articulate reasons" post.
> 
> For the last three or so years, I've been on a bit of a journey to find two or 
> three languages that I can really dive into and specialize in. I came upon D by 
> accident about a year or so ago and I really enjoyed the productivity I felt 
> when writing it. Specifically, I liked the way it felt to write and refactor and 
> optimize. I'm big on what the semantics and syntax of a language feels like. 
> This is where the problem starts.
> 
> I can tell people how I feel writing the language but I can't give them exact 
> reasons as to why they'd pick D over alternatives like Rust. I was hoping I 
> could get some opinions from the people here and maybe you guys can help me 
> solidify some of my own understandings.
> 
> Thanks in advance.

It's simply easier to write code in D.

Working with the borrow checker often means refactoring the algorithms and data 
structures, which takes time and effort.

On the other hand, you can port borrow-correct code to D without changing 
algorithms and data structures. In fact, I recommend learning how to write 
borrow-correct code, and using such as a matter of course. But D won't make you 
do it.


More information about the Digitalmars-d mailing list