[Issue 5043] writeln with empty arrays should write something useful
http://d.puremagic.com/issues/show_bug.cgi?id=5043 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC||andrej.mitrov...@gmail.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5043] writeln with empty arrays should write something useful
http://d.puremagic.com/issues/show_bug.cgi?id=5043 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #3 from Kenji Hara k.hara...@gmail.com 2011-09-02 12:09:10 PDT --- https://github.com/D-Programming-Language/phobos/pull/126 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5043] writeln with empty arrays should write something useful
http://d.puremagic.com/issues/show_bug.cgi?id=5043 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |ASSIGNED CC||and...@metalanguage.com AssignedTo|nob...@puremagic.com|and...@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5043] writeln with empty arrays should write something useful
http://d.puremagic.com/issues/show_bug.cgi?id=5043 Denis Derman denis.s...@gmail.com changed: What|Removed |Added CC||denis.s...@gmail.com --- Comment #2 from Denis Derman denis.s...@gmail.com 2010-12-16 00:24:11 PST --- (In reply to comment #0) writeln( [1, 2, 3] ); // prints [1, 2, 3] writeln( [] ); // prints (nothing) Why doesn't writeln( [] ) print []? It seems to me that [] would be far more useful, and it is certainly more consistent with the non-empty array behaviour. I know this is a minor thing, but if I'm trying to debug, blank lines aren't very much use, and actually cause more confusion than enlightenment. +++ -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 5043] writeln with empty arrays should write something useful
http://d.puremagic.com/issues/show_bug.cgi?id=5043 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #1 from bearophile_h...@eml.cc 2010-10-11 16:19:36 PDT --- The same bug is present with associative arrays: import std.stdio: writeln; void main() { int[int] aa; writeln(aa); } In this case I expect an output like: [] or even: [:] See also bug 3813 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---