ES4 draft: array initializer expressions

Olav Kjær olav at olav.dk
Sun Jun 22 07:37:54 PDT 2008


I have a (perhaps stupid) question regarding the Array type syntax. What is
the use case for a type like:

[string, double, ...boolean]

I understand the utility of heterogeneous tuples of a fixed size, and of
homogeneous lists of variable size, but I don't really see when I would use
a hybrid like this. What am I missing?

regards
Olav Junker Kjær
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.mozilla.org/pipermail/es-discuss/attachments/20080622/cebeb896/attachment-0002.html 


More information about the Es4-discuss mailing list