DIP9 -- Redo toString API

"Jérôme M. Berger" jeberger at free.fr
Sun Nov 21 13:37:55 PST 2010


spir wrote:
> On Sun, 21 Nov 2010 18:21:48 +0100
> Don <nospam at nospam.com> wrote:
> 
>> spir wrote:
>>> On Sun, 21 Nov 2010 03:17:57 -0800
>>> Jonathan M Davis <jmdavisProg at gmx.com> wrote:
>>>
>>>> You're not losing _anything_ out of the deal except that you wouldn't do 
>>>> obj.toString(). Instead you'd do to!string(obj).
>>> I'm usually not using toString(), it's supported by the language. What about format("%s:%s", a,b)? Will it still call toString implicitely, or writeTo a buffer, or what else?
>>>
>>> Anyway, I cannot see any advantage in deprecating toString() for every programmer in every use case, just for hypothetical efficiency issues
>> The efficiency issues are important,
> 
> 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. 

	Please bring a concrete example of code that would suffer from the
proposal.

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101121/c2ff9822/attachment.pgp>


More information about the Digitalmars-d mailing list