D vs Go in real life

Jesse Phillips Jesse.K.Phillips+D at gmail.com
Mon Dec 2 13:33:18 PST 2013


On Saturday, 30 November 2013 at 21:19:15 UTC, Chris Cain wrote:
> On Friday, 29 November 2013 at 16:15:10 UTC, Chris wrote:
>> I agree that D, too, can be a bit confusing. I sometimes have 
>> problems with AA declarations.
>>
>> Example:
>>
>> string[string][string] hm; // What am I?

     string[string][string] hm;

The result is a string, obtained through associative array with 
key string, obtained through associative array with key string 
which is located at hm.

> How about something *ridiculous* in right-to-left reading:
>
> rofl *[string][]*bool;

     bool*[][string]* rofl;

The result is bool, through a pointer, stored in an array, 
obtained through associative array with key of string, stored in 
array, and all pointeded to from a location rofl.

It really doesn't matter to me, but I'm not use to Go's backward 
style so I prefer D's choice.


More information about the Digitalmars-d mailing list