On 18 April 2012 17:51, Herby Vojčík <he...@mailbox.sk> wrote: > Maybe allowing > let {b, b:{x,y}} = obj; > would be enough. It sort-of comforms to existing syntax as well as > semantics.
That won't work for arrays, for example. I agree that 'as' patterns (and even more so, wildcard patterns) are basic building blocks that are currently missing. They are extremely useful in practice, for a very small price -- i.e., they are trivial to spec and implement, (unlike callable objects, because Brendan just mentioned those :) ). /Andreas _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss