Shopping for template languages - tuples

user1234 user1234 at 12.de
Thu Aug 15 02:22:58 UTC 2024


On Wednesday, 14 August 2024 at 20:59:28 UTC, user1234 wrote:
> On Wednesday, 14 August 2024 at 20:37:26 UTC, Nick Treleaven 
> [...]
>> 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 ;)

Well this was a clumsy way to say "sorry I was wrong". However 
I'm pretty confident about the fact that tuples in D will take 
age to be accepted and implemented. I challenge you to post me an 
email notification when the following will work with an official 
D release:

```d
static assert((0,1,2)[1] + 2 == 3);
```

You can find my email by scrutinizing the messages of the main 
commiter of https://gitlab.com/styx-lang/styx.

Sorry for the supplemental provocation but let's go: I'll try to 
keep the address alive for at least 5 years.

Hope to get a message soon 🤠


More information about the Digitalmars-d mailing list