Feedback Thread: DIP 1037--Add Unary Operator ...--Community Review Round 1

Stefan Koch uplink.coder at googlemail.com
Sat Oct 31 06:33:57 UTC 2020


On Friday, 30 October 2020 at 18:27:22 UTC, Andrei Alexandrescu 
wrote:
> On 10/27/20 10:34 PM, Manu wrote:
>> I mention that it's a postfix unary operator. I think that 
>> implies the precedence, no?
>> All the postfix operators work from the inside outwards. If 
>> there's precedence levels in there that I didn't notice, then 
>> I can amend to make it explicit.
>
> I'd say there's enough subtlety to this to warrant explanation. 
> For starters, it's not quite an operator because operators 
> yield expressions, whereas this yields a comma-separated list.


The ... operator does yield a tuple expression.
Tuple in. Tuple out.



More information about the Digitalmars-d mailing list