idea for Native D Tuple Syntax, packing and unpacking

Kindly Doright kindly.doright at no-e-mail.com
Wed Jun 26 12:27:47 UTC 2024


On Wednesday, 26 June 2024 at 11:08:49 UTC, Kindly Doright wrote:
> ...
> **By 1:30pm**, I had proven to myself that "#()" packing and 
> unpacking was viable for tuples.

---
I also considered that "#[ ]" *might be* useful for unpacking 
arrays. Now, after reviewing the particular '2018' draft again, I 
observed that its "()" unpacking syntax was also being used 
generically to unpack arrays.

Therefore, I present the idea of using "#()" for tuple unpacking 
syntax and "#[ ]" for array unpacking syntax.

(( and let the compiler maintainers rejoice! (if applicable) ))


More information about the dip.ideas mailing list