On Thu, Aug 21, 2008 at 7:04 PM, Peter Michaux <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 21, 2008 at 6:34 PM, Brendan Eich <[EMAIL PROTECTED]> wrote:
>> The destructuring pattern here is an array, but objects work too:
>>
>> js> let {length: len} = foo()
>
> The above has always instinctively looked to me like the variable
> "length" is being assigned the value of the "len" property of the
> object returned by foo. [...]

Not me. For me, the correct reading was the intuitive one. Did anyone
else find this confusing?

-- 
    Cheers,
    --MarkM
_______________________________________________
Es-discuss mailing list
Es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to