On Mon, 17 Mar 2014 12:38:23 -0000, bearophile <[email protected]> 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/

Reply via email to