https://issues.dlang.org/show_bug.cgi?id=3813
Andrei Alexandrescu changed:
What|Removed |Added
Version|2.040 |D2
--
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #24 from bearophile_h...@eml.cc 2011-09-06 02:31:57 PDT ---
(In reply to comment #23)
> Why are we spending our valuable time on this?
Because I print tuples often, and I'd like to see this situation improved. See
also:
http://www.
http://d.puremagic.com/issues/show_bug.cgi?id=3813
Andrei Alexandrescu changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #22 from bearophile_h...@eml.cc 2011-09-05 16:14:07 PDT ---
(In reply to comment #21)
> more consistency is better than less consistency.
Consistency is good when the situations don't change. But in our discussions
the conditions w
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #21 from Andrei Alexandrescu 2011-09-05
06:02:55 PDT ---
(In reply to comment #17)
> (In reply to comment #16)
> > Let's use [,,,] for all ranges. Thanks Kenji for your work.
>
> What's your rationale for this decision?
Absent ot
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #20 from bearophile_h...@eml.cc 2011-09-05 04:12:39 PDT ---
(In reply to comment #19)
> If you want that result, following code will work.
>
> writefln("[%(%.1f, %)]", array2); // prints [1.0, 2.0]
What I meant to say is that I'd
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #19 from Kenji Hara 2011-09-05 03:11:08 PDT
---
(In reply to comment #18)
> (In reply to comment #17)
>
> > This is not good, because from the text you can't tell FP point numbers from
> > integer ones. In a similar situation Pyth
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #18 from bearophile_h...@eml.cc 2011-09-05 02:55:45 PDT ---
(In reply to comment #17)
> This is not good, because from the text you can't tell FP point numbers from
> integer ones. In a similar situation Python prints this, that I t
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #17 from bearophile_h...@eml.cc 2011-09-05 02:53:08 PDT ---
(In reply to comment #16)
> Let's use [,,,] for all ranges. Thanks Kenji for your work.
What's your rationale for this decision?
---
In 2.055beta
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #16 from Andrei Alexandrescu 2011-09-04
12:38:55 PDT ---
Let's use [,,,] for all ranges. Thanks Kenji for your work.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mai
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #15 from bearophile_h...@eml.cc 2011-09-02 16:38:20 PDT ---
(In reply to comment #14)
> (2) I think that the output like "[e0, e1, ..., eN]" is *range formatting*,
> not
> array formatting, even if it looks like array. And an array
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #14 from Kenji Hara 2011-09-02 16:00:43 PDT
---
(In reply to comment #13)
> (In reply to comment #12)
> > https://github.com/D-Programming-Language/phobos/pull/126
> >
> > All of ranges are formatted like "[elem1, elem2, ...]".
>
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #13 from bearophile_h...@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
http://d.puremagic.com/issues/show_bug.cgi?id=3813
Kenji Hara changed:
What|Removed |Added
Keywords||patch
--- Comment #12 from Kenji Hara 20
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #11 from Denis Derman 2011-01-28 06:08:53
PST ---
More generally, why don't writeln / formatValue / whatever builtin funcs used
for output simply recurse to format elements of collections. This is how things
work in all languages I
http://d.puremagic.com/issues/show_bug.cgi?id=3813
Andrei Alexandrescu changed:
What|Removed |Added
Status|NEW |ASSIGNED
AssignedTo|nob..
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #10 from bearophile_h...@eml.cc 2011-01-08 03:30:24 PST ---
This Python2 program:
array1 = [1, 2]
print array1
array2 = [1.0, 2.0]
print array2
Prints:
[1, 2]
[1.0, 2.0]
This similar D2 program:
import std.stdio;
void main() {
http://d.puremagic.com/issues/show_bug.cgi?id=3813
Denis Derman changed:
What|Removed |Added
CC||denis.s...@gmail.com
--- Comment #9 fro
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #8 from bearophile_h...@eml.cc 2010-10-29 17:28:53 PDT ---
import std.stdio, std.range;
void main() {
writeln(iota(5));
}
With DMD 2.050 that program prints:
[0, 1, 2, 3, 4]
But that's not an array, it's a lazy sequence, and
http://d.puremagic.com/issues/show_bug.cgi?id=3813
--- Comment #7 from bearophile_h...@eml.cc 2010-10-11 16:20:06 PDT ---
See also bug 5043
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=3813
bearophile_h...@eml.cc changed:
What|Removed |Added
Summary|Bad writeln of string |Bad writeln of arrays
21 matches
Mail list logo