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

Ary Borenszweig ary at esperanto.org.ar
Sun Mar 16 12:28:02 PDT 2014


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?

Don't optimize upfront. If later you find out that was the bottleneck 
then you change byLine to something more efficient and that's it. And 
new users don't get unexpected results.

I'm with bearophile here.


More information about the Digitalmars-d mailing list