Andrej Mitrovic:

Personally I think it was a mistake providing unsafe APIs by default. If I would have had it my way, I would introduce:

byLine -> safe, doesn't reuse a buffer
byLineBuffer -> reuses a buffer

I agree. I proposed something related lot of time ago, see (the original title of this ER was "Safer stdin.byLine()"):
http://d.puremagic.com/issues/show_bug.cgi?id=4474

Bye,
bearophile

Reply via email to