[Issue 3813] Bad writeln of arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 2 15:11:51 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #13 from bearophile_hugs at eml.cc 2011-09-02 15:11:43 PDT ---
(In reply to comment #12)
> https://github.com/D-Programming-Language/phobos/pull/126
>
> All of ranges are formatted like "[elem1, elem2, ...]".
I appreciate the work you are doing to improve D textual Input/Output.
Regarding lazy ranges, generally I prefer the textual output to give me hints
of what I have printed. So I'd like some difference between the textual
representation of this array:
[0, 1, 2]
And this range:
iota(3)
I think a simple way to tell them apart is to use a different separator.
Functional languages sometimes use the semicolon to separate list items, so I
think it's nice to print iota(3) like this:
[0; 1; 2]
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list