RFC on SlidingSplitter Range
John Colvin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Oct 3 09:28:08 PDT 2014
On Friday, 3 October 2014 at 15:22:06 UTC, Nordlöw wrote:
> As a follow up to
>
> http://forum.dlang.org/thread/dndicafxfubzmndehzux@forum.dlang.org
>
> I've begun implementing a new range, I currently call,
> SlidingSplitter at
>
> https://github.com/nordlow/justd/blob/master/range_ex.d#L12
>
> I would now very much like comment/reflections especially with
> regards to
>
> - naming of range
> - mutability (inout)
> - and how to correct implement support for foreach which
> currently doesn't work
> - how to infer range-powers of SlidingSplitter from template
> parameter R
> - and other possible range primitives I may have forgotten :)
> - if enough people are interested I might try adding this to
> std.range
>
> Destroy, please!
First thing to to do with any range, once written, it to get it
to pass the compile-time checks in std.range wherever
appropriate. isInputRange, isForwardRange, isRandomAccessRange
etc.
More information about the Digitalmars-d-learn
mailing list