dmd 1.057 and 2.041 release
Alexander Suhoverhov
alexander at suhoverhov.selfip.net
Tue Mar 9 00:09:51 PST 2010
Steven Schveighoffer at "Mon, 08 Mar 2010 15:23:51 -0500" wrote:
SS> 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"]]
SS> For completely unambiguous, yes. But still, I find often that quotes are more noise than
SS> they are worth when just doing simple printouts. What we want is the most useful
SS> default.
Commas are even more noise than than quotes. erlang:
[{app, "app1"}, {user, "user1"}, {score, 123456}, {date, 5000000}, {misc, "foo"}]
But if you just drop commas:
[{app "app1"} {user "user1"} {score 123456} {date 5000000} {misc "foo"}]
SS> -Steve
--
Best regards, Alexander Suhoverhov
mailto: alexander at suhoverhov.selfip.net
More information about the Digitalmars-d-announce
mailing list