> On 21.7.2015, at 20:16, Andreas Rossberg <[email protected]> wrote:
> 
> Or, in other words: destructuring is only useful when you know the keys at 
> programming time (i.e., statically). But if that is the case, there is rarely 
> a good reason to use a map.

Actually, the main motivation is to use Immutable Map 
(https://facebook.github.io/immutable-js/ 
<https://facebook.github.io/immutable-js/>).

All examples shown here displayed only keys known statically (at programming 
time). I just mentioned that it could be nice to allow non-string keys and that 
we could reuse syntax that currently works for "dynamic" keys. But that 
definitely is not the core of the discussion here.

Samuel






Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to