[Issue 5043] New: writeln with empty arrays should write something useful
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 11 15:29:47 PDT 2010
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: nobody at puremagic.com
ReportedBy: peter.alexander.au at gmail.com
--- Comment #0 from Peter Alexander <peter.alexander.au at 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: -------
More information about the Digitalmars-d-bugs
mailing list