(no title)
usrbinenv | 4 months ago
* unit tests anywhere, so I usually write my methods/functions with unit tests following them immediately
* blocks like version(unittest) {} makes it easy to exclude/include things that should only be compiled for testing
* enums, unions, asserts, contract programming are all great
I would say I didn't have to learn D much. Whatever I wanted to do with it, I would find in its docs or asked ChatGPT and there would always be a very nice way to do things.
gavinray|4 months ago
From a philosophical/language-design standpoint, it ticks so many boxes. It had the potential to be wildly popular, had a few things gone differently.
If the language tooling and library ecosystem were on par with the titans of today, like Rust/Go, it really would be a powerhouse language.
binaryturtle|4 months ago
BradleyChatha|4 months ago
D definitely missed a critical period, but I love it all the same.
usrbinenv|4 months ago
sfpotter|4 months ago
IMO, the bigger issue is language tooling.
Clouudy|4 months ago
foresto|4 months ago
I could tolerate the noisy language bits, but:
The standard library (Phobos) was so riddled with paper cuts that every day I used it felt like trying to navigate the surface of a coral reef... barefoot... in a hurricane... while blindfolded. It drove me off after a few months. (That was last year.)
A Phobos V3 design has begun, but given how few people they have to work on it, I am skeptical of it ever developing into a library that I would want to use. Here's hoping for a pleasant surprise. :)
Clouudy|4 months ago