std.array.array broken?

bearophile bearophileHUGS at lycos.com
Sat Feb 1 16:25:17 PST 2014


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


More information about the Digitalmars-d mailing list