Need to find materials for new learners about this programming language
Ali Çehreli
acehreli at yahoo.com
Wed Aug 7 00:56:31 UTC 2019
On 08/06/2019 05:40 PM, bpr wrote:
>> http://ddili.org/ders/d.en/templates_more.html
> didn't mean to disparage your book
No worries; I did not read it that way. :)
> have you ever considered introducing it
> the other way?
[Introducing the full template syntax after the shorthand syntax.]
I'm with Razvan on this one: The simple syntax is very approachable and
makes it very easy to introduce the topic.
Elsewhere, I chose the reverse order when introducing loops:
- First the while loop
- Then the for loop
- Then the foreach loop
(- And finally iterating over user defined types and ranges)
Some people argue that the order should be reversed because foreach is
what we should mostly be using but I think looping is a relatively
simple concept that going from bottom up was the right decision there.
With the lambda syntax, I chose the full syntax first and then the =>
syntax:
http://ddili.org/ders/d.en/lambda.html#ix_lambda.=%3E
Ali
More information about the Digitalmars-d
mailing list