On 3/6/18 10:39 AM, Jonathan M Davis wrote:

Yeah. If you're dealing with generic code rather than a specific range type
that you know is implicitly saved when copied, you have to use save so often
that it's painful, and almost no one does it. e.g.

equal(lhs.save, rhs.save)


immutable result = range.save.startsWith(needle.save);

Yep. The most frustrating thing about .save to me is that .save is nearly always implemented as:

auto save() { return this; }

This just screams "I really meant just copying".


Reply via email to