What are the prominent upsides of the D programming language?
nise at nise.com
Thu Sep 24 08:58:54 UTC 2020
On Monday, 21 September 2020 at 11:04:43 UTC, Imperatorn wrote:
> Top reasons to use D instead of for example Rust, Julia, Go etc
For me it is.
* Best in class FFI. Interfacing to C or C++ is very easy thanks
to the built in compatability.
* Template programming makes sense. C++ functional style template
programming makes your brain hurt. With D you can still do meta
programming in a imperative fashion which fits the language you
* User friendly name resolution. C++ solves this by endless rows
of namespaces like
Namespace1::Namespace2::OneMore::EvenMore::theFunction. Since D
has rules how to figure out the name itself, you don't need to
hazzle with that. Only if there are collisions you need to be
* Data structure compatability with C/C++. Since D is so similar
to C/C++, all data structures can be more or less be ported to D
without any changes.
* Convenient "built in" arrays. While the are pitfalls in
performance with the arrays, they are very convenient to work
with. Arrays together with the slices is really something that
makes D close to scripting languages. Very nice to prototype with.
More information about the Digitalmars-d