toString refactor in druntime

Manu via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 1 06:35:46 PDT 2014


On 1 November 2014 05:06, via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> On Friday, 31 October 2014 at 19:04:29 UTC, 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?
>
>
> I guess because it's for druntime, and we don't want to pull in std.range?

I'd say that I'd be nervous to see druntime chockers full of templates...?


More information about the Digitalmars-d mailing list