https://issues.dlang.org/show_bug.cgi?id=4660

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[email protected]           |[email protected]

--- Comment #3 from [email protected] ---
(In reply to hsteoh from comment #2)
> Current workaround:
> 
> writefln("[%(%s; %)]", r);
> 
> Is this acceptable?

It's a simple workaround, but it misses my point: I have suggested to print
lazy sequences using ";" as items separator to help the programmer tell apart
lazy sequences from arrays (and array-like) data structures. So the purpose of
using ";" is to give more information to the programmer that sees a textual
output. If you use "[%(%s; %)]" to format a lazy range, you already know that
you are dealing with a lazy range, so the textual output is not giving you much
new information. So I think if we want to change this, it has to be a built-in
feature of writeln. Otherwise we can close down this ER as wontfix, because
it's not terribly important.

--

Reply via email to