An array destructing specification choice

Andreas Rossberg rossberg at google.com
Tue Nov 8 01:17:48 PST 2011


On 7 November 2011 18:42, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
>
> or
>    let [first,second] = "abc";

Yes, that's a more convincing example -- although we should probably
be aware that users will then also do

  let [x, y, ...s] = somestring

and expect it to slice a string efficiently.

/Andreas


More information about the es-discuss mailing list