toString refactor in druntime

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 3 08:01:19 PST 2014


On 10/31/14 3:04 PM, Walter Bright wrote:
> On 10/27/2014 12:42 AM, Benjamin Thaut wrote:
>> I'm planning on doing a pull request for druntime which rewrites every
>> toString
>> function within druntime to use the new sink signature. That way
>> druntime would
>> cause a lot less allocations which end up beeing garbage right away.
>> Are there
>> any objections against doing so? Any reasons why such a pull request
>> would not
>> get accepted?
>
> Why a sink version instead of an Output Range?
>

A sink is an output range. Supporting all output ranges isn't necessary.

-Steve


More information about the Digitalmars-d mailing list