The D Blog is Back -- A Tale of Tuples

Timon Gehr timon.gehr at gmx.ch
Mon Apr 13 09:26:28 UTC 2026


On 4/13/26 02:55, Richard (Rikki) Andrew Cattermole wrote:
> On 13/04/2026 3:18 AM, libxmoc wrote:
>> DIP 1053 makes tuples easier to work with, but it doesn't fix the 
>> basic problem: why does a simple data structure need you to import a 
>> library module and learn three different ways of doing the same thing?
>>
>> The new unpacking syntax feels like a first class feature, but the 
>> actual tuple implementation still feels like an afterthought.
>>
>> I'm surprised this was accepted when it feels half done.
> ...

It's a pretty canonical and uncontroversial half. A key reason things 
get stalled is because people may disagree about details, or resort to 
arbitrary gatekeeping behavior (like not accepting work when it is part 
of a bigger project that is not finished. Keeping things rebased against 
DMD master is quite a bit of work due to all the refactorings that are 
happening).

https://forum.dlang.org/post/101smim$2b4h$1@digitalmars.com

> That is because it is only half done.
> ...

In terms of being _done_, if unpacking would really be half, it is a bit 
more than half:
https://github.com/dlang/dmd/compare/master...tgehr:dmd:tuple-syntax

> It was intentionally split off as it was ready to go in.
> 

Which reminds me, we should try to get it merged.
https://github.com/dlang/dmd/compare/master...tgehr:dmd:unpacking

Why no PR yet? I think there is still this ICE related to copy and move 
constructors:
https://forum.dlang.org/post/1084rb7$2km2$1@digitalmars.com


More information about the Digitalmars-d-announce mailing list