TDPL notes, part 1
bearophile
bearophileHUGS at lycos.com
Fri Jul 16 16:54:22 PDT 2010
Andrei:
>Though the effort is definitely to be appreciated,<
Oh, good :-) Usually the more I like something, the more comments/criticism I write about it :-)
>there is a high risk that such long streams of consciousness come and go and are forgotten. There are more persistent places for proposing changes to the language or the book:<
I will add bits there after I have posted things here.
>From the start of my TDPL reading I have added some bugs to Bugzilla:
http://d.puremagic.com/issues/show_bug.cgi?id=4463
http://d.puremagic.com/issues/show_bug.cgi?id=4458
http://d.puremagic.com/issues/show_bug.cgi?id=4474
http://d.puremagic.com/issues/show_bug.cgi?id=4475
http://d.puremagic.com/issues/show_bug.cgi?id=4476
But I often don't know what can be considered an error worth for the book errata corrige. Most of the things I write here are comments or enhancements, or a matter of taste and judgement, not true errors.
In the part 1 of my notes I have said that having two syntaxes to allocate an array is bad, the second one is more general and enough (it's just 2 chars longer for 1D arrays and no longer for 1+ND arrays):
new int[20];
new int[](20);
But deprecating the first syntax doesn't look easy. So I don't know if this too is worth a Bugzilla report.
I buy one or more books every week, but I also like a pdf version, that allows me to read it on a screen or to copy&paste quotations to friends, when I want to discuss with them about the book contents (even when they are not interested enough in the topic to buy the book themselves). I don't like to buy a book two times, in paper and pdf versions, just because I want to send a total of about 50-100 lines of text to a friend. This is not how the 'Republic of Books' is supposed to be :-)
Bye,
bearophile
More information about the Digitalmars-d
mailing list