News for hackers. Stuff that matters.
Re:The Expressive C++17 Coding Challenge in D by typon on Wednesday February 14, 2018 @10:27AM (#16376404)
This blog post was an amazing advertisement for D.
Re:The Expressive C++17 Coding Challenge in D by geezerjay on Wednesday February 14, 2018 @02:37PM (#16378645)
I don't agree. The comparisons are rather disingenuous as the representative examples hand-picked for the other languages are rather crude and too much verbose. For instance, the 120-loc C++ program needlessly introduces functions that run a single loc (by adding 4 or 5 loc to the bill) and add a dozen or so lines by breaking long lines.
Re:The Expressive C++17 Coding Challenge in D by greenify on Wednesday February 14, 2018 @03:10PM (#16378929)
The C++ program won the challenge of being the "most expressive C++17" program for this task ...
Re:The Expressive C++17 Coding Challenge in D by geezerjay on Thursday February 15, 2018 @01:40AM (#16382325)
...and by "most expressive C++17 [program]" it actually meant this:

> So the purpose of this challenge is to write a piece of code that contains as many features of C++17 as possible, and that is as clear as possible.

...which, clearly, states that the goal was not minimize lines of code.

I bet D fanboys can find more apples-to-oranges comparisons where D comes out as the most citric alternative when compared with apples and bananas.

And by the way, the contest was organized by a couple of blogs, and the winner was a self-confessed amateur. Hardly a tour de force in C++ programming.