OT: Tuple Syntax and Placeholders (Re: First Draft: Tuple Unpacking Syntax)

Timon Gehr timon.gehr at gmx.ch
Sun Jul 27 21:35:46 UTC 2025


On 7/25/25 15:42, Richard (Rikki) Andrew Cattermole wrote:
> Overall quite good, just a couple of tweaks I'd prefer to have to make 
> everyone's lives easier (such as custom runtime writers).
> ...

I think you were looking at the wrong document, seems you were reading 
my old draft that had a bigger scope. Neither of these features are 
proposed by the DIP.

That said:

> 
> 
> Proposal 3: Built-in tuple types and literals
> 
> Why are you putting it into object.d?
> 
> Its big enough as it is, and these types can be copied wholesale.
> 
> Putting them in a dedicated module would be a much better choice.
> ...
> 

Something like `core.internal.tuple` or similar will probably be better.

> 
> Proposal 6: Placeholder name _
> 
> This is guaranteed to break code, its going to have to wait for an 
> edition to execute. No need to do it in two stages then.
> 

Yes. This is why this is not part of this DIP.


More information about the dip.development mailing list