Why do C++ programmers are not interested in D?
IGotD-
nise at nise.com
Wed Nov 20 14:02:22 UTC 2019
On Wednesday, 20 November 2019 at 12:27:49 UTC, Ola Fosheim
Grøstad wrote:
> On Wednesday, 20 November 2019 at 12:20:45 UTC, IGotD- wrote:
>> doesn't help the aesthetics of the program. D has more verbose
>> templates which was for me another reason I wanted to move
>> from C++.
>
> I assume you meant that D has less verbose templates? Yes, that
> is an issue in C++, it is getting better, but still not great.
>
> Did you move to D because of memory safety? Or was that a not a
> major issue for you in C++?
Yes, I made mistake, I meant that D has shorter and readable
templates.
Memory safety is not a deal breaker but nice to have for example
GC helps speeding up development as you get one less issue to
think about but leaking programs are easy to debug. Bounds
checking is the most important safety feature as these bugs can
manifest themselves so differently and can be hard to find. C++
can find memory overwrites as well, for example MSVC put guards
between variables on the stack an heap in debug mode. I would say
ergonomics (ex. boiler plate code, library user friendliness)
play just as big role as memory safety. The main reason I moved
to D was that I found that the language was more productive.
More information about the Digitalmars-d
mailing list