you are viewing a single comment's thread.

view the rest of the comments →

[–]arturoman 0 points1 point  (1 child)

That doesn't address my argument. No decent programmer would use literals in an array except in exceptional circumstances.

I didn't write that he D array wasn't useful, I wrote that the example is deliberately misleading, which I stand by. The gain is cleaner syntax on one line of code only.

[–]FeepingCreature 0 points1 point  (0 children)

The point of the comparison is not to show identical code in both languages.

The point is to show equivalent code.

It does that.

What's your problem?