DIP9 -- Redo toString API

Tomek Sowiński just at ask.me
Sun Nov 21 13:38:31 PST 2010


Don <nospam at nospam.com> napisał(a):

> The efficiency issues are important, but are not the primary motivation.
> toString() is just wrong. The idea that there is ONE AND ONLY ONE  
> textual representation of an object, is, frankly, idiotic.

I always thought of toString() as an aid in debugging, where having one  
and only way to print out an object makes sense. But strong words suggest  
you see something I don't. What problems does offering choice solve? How  
and to whom would I pass my choice?

-- 
Tomek


More information about the Digitalmars-d mailing list