TDPL notes, part 2

2010-07-15 Thread bearophile
I hope Andrei appreciated my efforts :-) - The non-alphabetical index page 439 is a good idea. - The page thickness is OK for me. More comments on Chapter 1: Page 17: using null to represent empty arrays is not good. In D there is [] that's better for this. P 18: "foo in

Re: TDPL notes, part 2

2010-07-15 Thread retard
Thu, 15 Jul 2010 07:51:55 -0400, bearophile wrote: > P 61: this is so hard to read that I don't want to see anything similar > even in small script-like programs. The D compiler can even disallow > such long chains: int c = (a = b, b = 7, 8); I suppose this mostly explains why the real tuples are

Re: TDPL notes, part 2

2010-07-15 Thread Andrei Alexandrescu
On 07/15/2010 09:10 AM, retard wrote: Thu, 15 Jul 2010 07:51:55 -0400, bearophile wrote: P 61: this is so hard to read that I don't want to see anything similar even in small script-like programs. The D compiler can even disallow such long chains: int c = (a = b, b = 7, 8); I suppose this mos

Re: TDPL notes, part 2

2010-07-15 Thread Yao G.
Weren't you leaving for good this list? On Thu, 15 Jul 2010 09:10:03 -0500, retard wrote: Thu, 15 Jul 2010 07:51:55 -0400, bearophile wrote: P 61: this is so hard to read that I don't want to see anything similar even in small script-like programs. The D compiler can even disallow such long