Shopping for template languages - tuples

user1234 user1234 at 12.de
Wed Aug 14 20:59:28 UTC 2024


On Wednesday, 14 August 2024 at 20:37:26 UTC, Nick Treleaven 
wrote:
> On Wednesday, 14 August 2024 at 16:05:16 UTC, user1234 wrote:
>> I remember now that what is deprecated is to use the result of 
>> the comma-exp.
>
> Yes.
>
>> I just wanna say, off-topic, that if D wants tuples, it would 
>> be time to fully deprecate the exp, depending on if you want 
>> tuples in 3 (deprecate now) or 6 years (do nothing for now).
>
> A tuple expression would probably require brackets:
> https://forum.dlang.org/post/p3bdp1$2b4e$1@digitalmars.com
>
> A comma expression result can't be used. I think it can only be 
> used as an expression statement, or in the `for` *Increment* 
> clause. Are there any cases where it could conflict with 
> bracketed tuples? [...]

No, I cant see one either. Looks like the comma-exp is actually 
not the blocker ;)


More information about the Digitalmars-d mailing list