Strawman: Tuples

Brendan Eich brendan at mozilla.org
Fri Sep 12 09:36:19 PDT 2014


Salvador de la Puente González wrote:
> var tuple = Object.freeze([1, 2]);

Right, and #[1, 2] could transpile and give nice, compact syntax.

Too bad I put the comma operator in JS from day 1 -- Java did not but I 
followed C, the great grand-parent.

/be


More information about the es-discuss mailing list