reddit.com: first Chapter of TDPL available for free
Pablo Ripolles
in-call at gmx.net
Tue Aug 4 11:32:49 PDT 2009
MIURA Masahiro Wrote:
> Andrei Alexandrescu wrote:
> > http://www.reddit.com/r/programming/comments/975ng/diving_into_the_d_programming_language_tdpl/
>
> Thanks for sharing it!
>
> Typos: in section 1.1, there are inchPerFoot's and inchperfoot's.
And, of course, the same goes for cmperinch's.
Some other observations are the following:
In section 1.2 you refer to prior "if" statements introduced in above samples, what samples? is there maybe a 0 chapte?r
In section 1.4, subsection "Building a Vocabulary" it's not very clear what stdio.byLine is... I mean, it says nothing about how to feed the text to the program. Also in subsection "Counting Frequencies. Lambda Functions" there appears a call to "splitter" function, isn't it named "split" instead? Besides the hamlet.txt URL doesn't work already, maybe a bit of indirection here would also be appreciated...
In section 1.5, maybe I miss the reason of importing "std.range".
In section 1.6, "stats" is a variable and stats.d is the name of the file/module, shouldn't stats.d be renamed to stat.d so that "stat.Max" makes sense and so the name of the program becomes stat and it's invoked that way in the command line? Or maybe rename "stat.Max" to "stats.Max"? Besides, aren't you talking firstly about Min? Why not to illustrate the thing with "stat.Min" instead of "stat.Max"?
In the references to different other chapters the word sometimes appears capitalized and sometimes doesn't.
Cheers!
More information about the Digitalmars-d-announce
mailing list