Re: Iterating sparse arrays
"Douglas Crockford" <nospam@covad.n et> wrote in message
news:3d0a1$41ee 59eb$44a4af95$6 64@msgid.megane wsservers.com.. .[color=blue][color=green][color=darkred]
> >>It is incorrect to use an array when the keys are non-integers.[/color][/color]
>[color=green]
> > I think this is too strong of a statement since the array declaration
> > supports string values as references.[/color]
>
> Wrong is wrong even if you do not understand the difference.[/color]
You're full of crap. JS allows string indices on purpose. It's quite
intentional, even if you don't like it.
MK
"Douglas Crockford" <nospam@covad.n et> wrote in message
news:3d0a1$41ee 59eb$44a4af95$6 64@msgid.megane wsservers.com.. .[color=blue][color=green][color=darkred]
> >>It is incorrect to use an array when the keys are non-integers.[/color][/color]
>[color=green]
> > I think this is too strong of a statement since the array declaration
> > supports string values as references.[/color]
>
> Wrong is wrong even if you do not understand the difference.[/color]
You're full of crap. JS allows string indices on purpose. It's quite
intentional, even if you don't like it.
MK
Comment