Remix.run Logo
qwe----3 4 hours ago

I don't know why but dlang continues to draw me - I've really enjoyed many of the talks in the past

vips7L 3 hours ago | parent | next [-]

I always try it every few years, but I can never figure out how to get a good ide experience. I’ve tried both VSCode and IntelliJ. I most recently tried to make it work for advent of code last year. Maybe I’m just too used to how good the IDE experience for Java is?

swyx 3 hours ago | parent | prev [-]

for those (like me) completely new but interested in new programming languages - can you or similar minds summarize the current appeal?

zem 3 hours ago | parent [-]

it's an evolutionary (as opposed to revolutionary) language; it is in many ways a reimagining of c++ based on decades of observing the latter's flaws and weaknesses in the real world. if you're in the c or c++ ecosystem already you will likely find D a pleasant set of improvements to c++.

WalterBright 3 hours ago | parent [-]

For example, C and C++ still cannot compile this:

    int foo() { return bar(); }

    int bar() { return 3; }
vips7L 3 hours ago | parent [-]

Is it because bar is defined after foo?

WalterBright 2 hours ago | parent [-]

Yes.

It has deleterious consequences. One solution is to add a forward declaration, which is the kind of busywork a language is supposed to eliminate.

Another is to reverse the natural order of functions, with the implementation functions at the top and the interface of the module at the bottom.

After all, do you read a website from top to bottom or bottom to top?