On Wednesday, 19 September 2018 at 21:48:40 UTC, Timon Gehr wrote:
On 19.09.2018 23:14, 12345swordy wrote:
On Tuesday, 3 July 2018 at 16:11:05 UTC, 12345swordy wrote:
On Thursday, 28 June 2018 at 13:24:11 UTC, Timon Gehr wrote:
[...]
Is there any way we can help on this?
*Bump* I want this.
So do I, but I need to get a quiet weekend or so to finish this.
I am very tempted to start my own dip on this and finish it.
Here's the current state of my implementation in DMD:
https://github.com/dlang/dmd/compare/master...tgehr:tuple-syntax
It has no tests yet, but basically, with those changes, you can
write tuple literals `(1, 2.0, "3")`, you can unpack tuples
using `auto (a, b) = t;` or `(int a, string b) = t;`, and
tuples can be expanded using alias this on function calls, so
you can now write things like
`zip([1,2,3],[4,5,6]).map!((a,b)=>a+b)`.
The implementation is still missing built-in syntax for tuple
types, tuple assignments, and tuple unpacking within function
argument lists and foreach loops.
I was referring to the DIP. I am not familiar with the dmd
compiler itself to create an implementation. Regardless I think
you should finish you DIP and submit it as the process is going
to take a very long time.