Bob Myers schrieb:
The syntactical construct `array()` is unused as far as I know, since
currently it would always generate a syntax error--an array is not a
function.
It's a runtime `TypeError` rather.
Thus we can use this as in
```
[1,2,3](-1)
```
Shouldn't break anything.
This would break much more than a `last` getter/method or `nth`/`at` method.
Arrays becoming callable would mean that their `typeof` changes from
`"object"` to `"function"`, which is a very bad idea.
Regards,
Bergi
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss