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

Regan Heath regan at netmail.co.nz
Tue Mar 18 08:00:10 PDT 2014


On Mon, 17 Mar 2014 12:38:23 -0000, bearophile <bearophileHUGS at lycos.com>  
wrote:

> Dmitry Olshansky:
>
>> f.lines?
>
> There is already a lines in std.stdio (but I don't use it much), search  
> for:
>
> foreach (string line; lines(stdin))
>
> Here:
> http://dlang.org/phobos/std_stdio.html

Does this do the same as byLine or does it dup the lines?

Can we replace or scrap it?


foreach(string line; f.lines)

is just too nice not to strive for, IMO.


R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list