http://d.puremagic.com/issues/show_bug.cgi?id=5043
Summary: writeln with empty arrays should write something useful Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: peter.alexander...@gmail.com --- Comment #0 from Peter Alexander <peter.alexander...@gmail.com> 2010-10-11 15:29:18 PDT --- 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: -------