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

Marco Leise Marco.Leise at gmx.de
Wed Mar 19 06:46:50 PDT 2014


Am Tue, 18 Mar 2014 09:49:32 -0700
schrieb Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org>:

> On 3/18/14, 6:49 AM, Steven Schveighoffer wrote:
> > byStringLines
> 
> First one I like.
> 
> Andrei

Also consider the consistency. The function does byLine() + a
copy, right? Not something entirely different.

byLine
byLine[Copy/Dup/...]

would also show up in order on lists like Phobos documentation
or IDE completion lists, so it cannot be missed. Which is
important, because the obvious choice has the unexpected
buffer reuse.

Consistency, consistency, consistency. That's how Java got
big. How PHP made it, I don't know.

-- 
Marco



More information about the Digitalmars-d mailing list