It would be nice to have Array literal syntax declare it's ArrayType
before the declaration of the array.

For example:

1. var x : Array<String> = [ "foo", "bar", document.title, getAnotherString() ];

2. var x = [ "foo", "bar", document.title, getAnotherString() ] : String;

example 1 is more clear to read because in a long array, you'd see
right away what type of Array it is.

Is the former syntax (or some variant thereof) going to be available?

What about for Objects?

Garrett
_______________________________________________
Es4-discuss mailing list
Es4-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to