Discussion Thread: DIP 1037--Add Unary Operator ...--Community Review Round 1
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Nov 2 09:56:58 UTC 2020
On Monday, 2 November 2020 at 09:45:48 UTC, Manu wrote:
> On Mon, Nov 2, 2020 at 4:30 PM Ola Fosheim Grøstad via
> Digitalmars-d < digitalmars-d at puremagic.com> wrote:
>> D should reduce the number of types you have to account for in
>> generic code.
> I'm not sure what this means.
Tuples should work with all generic code that is willing to take
a struct as input.
>> I suggested explicit indexing, so not a problem.
> I don't understand this comment.
Assume tuple t1 and t2
f("hello", tuple(t1[_], t2),...]
f("hello", tuple(t1, t2),tuple(t1, t2), tuple(t1, t2)]
More information about the Digitalmars-d