On Tuesday, 30 August 2016 at 11:17:33 UTC, Chris wrote:
On Tuesday, 30 August 2016 at 10:50:17 UTC, John Burrton wrote:
This is why the example on the front page put me off for a
long time :-
stdin
.byLineCopy
.array
.sort!((a, b) => a > b) // descending order
.each!writeln;
It makes the language look like some weird high level
functional language where you don't ask how it works and you
shouldn't care how it maps to the machine instructions and
memory.
I bet you if you had a C-style example on the front page,
people would complain that it's old fashioned and not really
different from C, and they'd ask "Why can't I do things like
`stdin.byLineCopy.array.sort!((a, b) => ...` in D?".
Yeah I know...
As I said not really a complaint ... But it d make me think d was
too high level a language with too much 'magic' . Other people
will have different opinions