a) What is the rationale behind not making byLineCopy the default?

byLine was the original implementation. byLineCopy was added later after the need for it became apparent.

See:

https://forum.dlang.org/post/[email protected]

THX. BTW byLineCopy defaults to immutable char. That's why one has to use

    auto tmp = File(filename).byLineCopy!(char, char);

or

    auto tmp = File(filename).byLine.map!dup;


Reply via email to