Good name for f.byLine.map!(x => x.idup)?

Jakob Ovrum jakobovrum at gmail.com
Sun Mar 16 12:49:09 PDT 2014


On Sunday, 16 March 2014 at 19:45:21 UTC, Andrei Alexandrescu 
wrote:
> On 3/16/14, 12:28 PM, Ary Borenszweig wrote:
>> On 3/16/14, 2:50 PM, Andrei Alexandrescu wrote:
>>> On 3/16/14, 10:49 AM, bearophile wrote:
>>>> So I think byLine should dup on default, and it should not 
>>>> dup on
>>>> request.
>>>
>>> That will not happen.
>>>
>>> Andrei
>>>
>>
>> Why not?
>
> Performance regression.
>
> Andrei

Not just that, but it would be a breaking change if we make the 
element type `string` instead of `char[]`, and if we *don't* do 
that, we end up in a poor compromise where it's neither optimally 
usable nor performant.


More information about the Digitalmars-d mailing list