Researcher question – what's the point of semicolons and curly braces?
HaraldZealot via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 3 07:12:15 PDT 2016
On Tuesday, 3 May 2016 at 03:48:09 UTC, Joe Duarte wrote:
> Hi all,
>
> I'm a social scientist and I'm preparing some studies on the
> effects of programming language syntax on learning, motivation
> to pursue programming, as well as any disproportionate effects
> that PL syntax has on the appeal of programming to women (more
> on the latter in a separate post).
>
> [...]
And D-specific syntax for range-based algorithms often also
clearer in multi-line form:
```d
stdin
.byLineCopy
.array
.sort!((a, b) => a > b) // descending order
.each!writeln;
```
(current snapshot from main page ;) )
More information about the Digitalmars-d
mailing list