On 01/25/2016 12:00, Andrea Giammarchi wrote:
`Array.prototype.nth(n=0)` looks great indeed, +1 here

About the Symbol ... ugly as hell also we need to write even more and it 
doesn't scale as utility compared to .nth

```js
a[Symbol.last]
a[a.length-1]
```

I fail to see the point of this, other than trying to increase the complexity 
of the language by adding even more cases which do the same things but work 
somewhat differently from existing cases.

We'd have done a lot of things differently if we were starting from scratch.  
But arrays have a large amount of legacy behavior we can't realistically change 
and, given that, this doesn't improve things much.

    Waldemar

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to