Surprising interaction of tuples and slicing
Ben Jones
fake at fake.fake
Fri May 8 16:50:12 UTC 2020
On Thursday, 7 May 2020 at 23:07:40 UTC, Ali Çehreli wrote:
> The trouble seems to be when slicing the entire tuple. Even in
> that case, printing a warning would not be desired in some
> situations ironically in generic code where e.g. T[0..$] may
> appear, which is the same as T[].
>
> Ali
I agree T[0..$] and T[] mean the same thing and the first could
come up naturally, but if there's never a useful cased spelled
with T[], then it would be detectable and nice to issue a warning.
More information about the Digitalmars-d-learn
mailing list