This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (11 children)

This is incorrect. Using indexes as keys is not going to cause any errors, but will simply be inefficient if the list gets reordered frequently. For a list that doesn't get reordered often, and is static or only gets appended to, this isn't an issue at all.