Extensible destructuring proposal
Samuel Hapák
samuel.hapak at vacuumapps.com
Tue Jul 21 18:37:55 UTC 2015
> On 21.7.2015, at 20:16, Andreas Rossberg <rossberg at google.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150721/afb127b2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3589 bytes
Desc: not available
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150721/afb127b2/attachment.p7s>
More information about the es-discuss
mailing list