▲ | johnisgood 7 hours ago | |
For what it's worth, in Elixir you might write something along the lines of the following (this is a rough translation, I haven't tested it):
This is not equivalent in style or presentation to:
Personally, I find the D version visually unappealing (and confusing), especially the way "stdin" sits alone on its own line, followed by a sequence of indented method calls. The excessive use of dots combined with the indentation structure makes it look, to me, rather awkward.That is just my own opinion. | ||
▲ | WalterBright 2 hours ago | parent [-] | |
You can format it whatever way you like. D does not use formatting to impose semantic meaning. |