>
> ---------- Forwarded message ----------
> From: Jordan Harband <[email protected]>
> To: "/#!/JoePea" <[email protected]>
> Cc: es-discuss <[email protected]>
> Bcc:
> Date: Mon, 4 Dec 2017 11:28:22 -0800
> Subject: Re: Multi-index assignment.
> Can you elaborate on these situations?
>
> In general, I find that using specific array indexes is most often a code
> smell.
>

Agreed, and depending on the programming language, commas in square
brackets has a different meaning.  Way back when I was a child working with
BASIC (I think), foo[1, 2] meant a two-dimensional array, what we now call
foo[1][2].

It sounds like you are trying to abuse object destructuring here... in a
way that is probably dangerous.
-- 
"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to