Limited printing?

bearophile bearophileHUGS at lycos.com
Wed Jan 16 06:05:02 PST 2013


Peter Alexander:

> I say no. IO isn't always for human consumption (as it usually 
> is in Mathematica). You could very well be printing out as a 
> means of serialisation, and you certainly don't want your data 
> to be trimmed in that case.

Mathematica and NumPy on default shorten the output if it's too 
much large, and show it all on request. What I forgot to say in 
my first post is that in D it's probably better to have those 
conditions swapped, this means printing all on default, and 
adding a way to produce a shorter output on request.

Bye,
bearophile


More information about the Digitalmars-d mailing list