3 ms·
The D programming language is far safer than C/C++, with the same amount of power. The syntax/semantics are such that it's very easy to learn if one is familiar
by WalterBright 2y ago
The D programming language is far safer than C/C++, with the same amount of power. The syntax/semantics are such that it's very easy to learn if one is familiar with C/C++.
For example, although one can use pointers in D with abandon, it's better to use slices, where array bounds overflows cannot happen. Array bounds overflows are the #1 cause of security bugs in shipped C/C++ software.
- throwaway314155 2y ago> if one is familiar with C/C++. > C and C++ are too difficult
- 999900000999 2y agoI think we might have chatted here before. I want to like D, it definitely came up in my research but I just don't see the ecosystem as vibrant enough to lead to where I want it to . Either building cool things, or better employment opportunities. It is encouraging to see a language so loved folks are proselytizing for it. My vote is for Haxe! But that's also a very high level language.
- WalterBright 2y agoThe people who do use D really like it. It's a mature language with solid compilers. I haven't experienced a memory corruption problem with it in maybe a decade, and I write D code every day. That's a big change from my days writing C and C++.