Phobos uses opSlice and opDollar without checking for it

qznc via Digitalmars-d digitalmars-d at puremagic.com
Wed May 25 11:56:40 PDT 2016


On Wednesday, 25 May 2016 at 16:21:07 UTC, H. S. Teoh wrote:
> On Wed, May 25, 2016 at 03:05:33PM +0000, qznc via
>> Also, std.range.primitives should have a predicate for 
>> opDollar similar to hasSlicing.
>
> It's hard to imagine having much use for a range that has 
> slicing but not opDollar.  For simplicity's sake, I'd suggest 
> keeping the two together. Since we already have hasSlicing, I'd 
> say put the check for opDollar in hasSlicing.

That would be a breaking change, although breakage is unlikely.




More information about the Digitalmars-d mailing list