---------- Forwarded message ---------- From: Jordan Harband <[hidden email]> To: "/#!/JoePea" <[hidden email]> Cc: es-discuss <[hidden email]> 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.
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