dmd 1.057 and 2.041 release
Steven Schveighoffer
schveiguy at yahoo.com
Mon Mar 8 12:23:51 PST 2010
On Mon, 08 Mar 2010 15:12:24 -0500, bearophile <bearophileHUGS at lycos.com>
wrote:
> Steven Schveighoffer:
>> Tell me how you would parse the following text serialization string for
>> a
>> string[]:
>>
>> hello world how are you
>>
>> What if it was a string[][]?
>>
>> Compare that to:
>>
>> [hello world, [how are, you]]
>
> You are missing something:
>
> ["hello world", ["how are", "you"]]
For completely unambiguous, yes. But still, I find often that quotes are
more noise than they are worth when just doing simple printouts. What we
want is the most useful default.
Also, the desired output I would like is:
T[] => "[T1, T2, ..., Tn]"
This would mean that strings have a special case of printing with quotes
only when printed inside an array. This seems like an oddity to me.
-Steve
More information about the Digitalmars-d-announce
mailing list