DIP9 -- Redo toString API

bearophile bearophileHUGS at lycos.com
Sun Nov 21 13:39:19 PST 2010


spir:

> 1. Please bring concrete cases of apps that do not work well because of toString and would work fine just by replacing it with writeTo.

writeln is already slow. To print quickly numerical genomic data in D I have had to use printf in some situations. 


> 4. If you want another default and builtin tool, why not have both?

Because having two ways to do something makes the language more complex.


> But, yes, you are right and we all have been wrong for 20 years: toString is junk. Thank you for this sudden enlightenment.

Progress happens :-)

Bye,
bearophile


More information about the Digitalmars-d mailing list