www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Tuple Syntax

reply Michelle Long <HappyDance321 gmail.com> writes:
Is there any simple tuple syntax?

You know, instead of tuple(x,y) just (x,y)?

[a:(b,c), d:(e,f)]

or <x,y> or {a,b} or [n,m]

or if someone came up with another bracket to use. I wouldn't 
mind memorizing some ascii code ◄j,l►.
Jan 08 2019
parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Tue, Jan 08, 2019 at 02:32:35PM +0000, Michelle Long via Digitalmars-d wrote:
 Is there any simple tuple syntax?
 
 You know, instead of tuple(x,y) just (x,y)?
[...] This is the subject of Timon's Tuple DIP. It's in the works. --T
Jan 08 2019