I’ve never used D but this really makes me want to give it a shot. Did anyone try it, and would you recommend using it?
I'm a D developer, and D is so far the best language I've tried. It has very powerful meta programming capabilities, looks much nicer than Rust, and supports multiple paradigms. My main gripe is the lack of libraries, but it's pretty easy to either write your own, or a binding to a C or C++ one. I wrote a couple of my own libraries, and I'm currently writing my own replacement for SDL, called iota, and I aim it to be a smaller version of it (e.g. not including things into it that already exist in the Runtime and Phobos).
I really like multi paradigm programming, as most programming paradigms are good at a select few things, while over-complicate others.
glad_cat@lemmy.sdf.org 1 year ago
I like the idea of the D programming language but I thing I’ll never use it:
The language looks nice, but it feels like it’s in a weird position around all the other languages.
gnus_migrate@programming.dev 1 year ago
DMD is the reference implementation as far as I know, so I don’t think they have the same issue that C and C++ have with regards to needing to have a standard that pleases everyone. I agree that it has an issue positioning itself relative to other languages, but to me D is the “boring” language. It has most of what you need, there is very little that is surprising in it.
orangeboats@lemmy.world 1 year ago
My experience has been similar - it’s hard to categorize the language.
As a low-level system language like C, C++, Rust, Zig? The garbage collector makes it a hard sell to other people, even though one can opt out of it.
As a higher-level application language like Java and Go? D frequently gives me a “low-level language” feel, but I am not sure why.
As a scripting language? I feel like its type system works against the rapid-prototyping coding style commonly seen in scripts.