On Mon, 08 Mar 2010 15:12:24 -0500, bearophile <[email protected]>
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